]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/regress-141883.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / regress-141883.js
1 // This test is taken almost literally from the bug report: https://bugs.webkit.org/show_bug.cgi?id=141883.
2 // The only change is to use a loop bound of 1e4 instead of 1e5 to make the test run faster. This
3 // change still caused a reliable crash in every optimizing JIT configuration prior to the fix.
4
5 (function() {
6 var b=!2;
7 var n = 1e4;
8 for(i = 0; i< n; i++) {
9 b[b=this];
10 for (var i = 0; i < n; i++) {
11 if (a = b*3) {
12 }
13 }
14 }
15 })()