| description("Regression test for https://webkit.org/b/150513."); |
| // This test verifies that we can properly handle calling a virtual JavaScript |
| // function that fails during CodeBlock generation. |
| functions.push(new Function("a", "return a")); |
| functions.push(new Function("a", "return a")); |
| functions.push(new Function("a", "return a")); |
| for (var i = 0; i < 100000; i++) { |
| testRunner.failNextNewCodeBlock(); |
| testFailed("Wrong result, expected 1, got " + result); |
| testPassed("Didn't crash when calling a virtual JavaScript function that doesn't have a CodeBlock."); |