]> git.saurik.com Git - apple/javascriptcore.git/blame_incremental - tests/stress/throw-from-ftl-in-loop.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / throw-from-ftl-in-loop.js
... / ...
CommitLineData
1var didThrow = false;
2try {
3 (function() {
4 for (var i = 0; i < 1000000; ++i) { }
5 throw 42;
6 })();
7} catch (e) {
8 if (e != 42)
9 throw "Error: bad result: " + e;
10 didThrow = true;
11}
12if (!didThrow)
13 throw "Error: should have thrown but didn't.";