| function shouldThrow(func, errorMessage) { |
| throw new Error('not thrown'); |
| if (String(error) !== errorMessage) |
| throw new Error(`bad error: ${String(error)}`); |
| function shouldBe(actual, expected) { |
| throw new Error(`bad value: ${String(actual)}`); |
| for (var i = 0; i < 1e6; ++i) |
| for (var i = 0; i < 1e6; ++i) |
| $.evalScript('get(); const bar = 3;'); |
| }, `ReferenceError: Cannot access uninitialized variable.`); |
| }, `ReferenceError: Cannot access uninitialized variable.`); |
| }, `ReferenceError: Cannot access uninitialized variable.`); |
| }, `ReferenceError: Cannot access uninitialized variable.`); |
| for (var i = 0; i < 1e3; ++i) { |
| }, `ReferenceError: Cannot access uninitialized variable.`); |