]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/liveness-pruning-needed-for-osr-availability-eager.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / liveness-pruning-needed-for-osr-availability-eager.js
1 // Note that this only fails in eager compilation.
2
3 function each(ary, func) {
4 if (ary)
5 for (var i = 0; i < ary.length && (!ary[i] ||!func(ary[i], i, ary)); i += 1);
6 }
7
8 var blah = function () {
9 var func = function() {
10 return (function () { }).apply(Object, arguments);
11 };
12 each([ {}, {} ], func);
13 };
14
15 for (var i = 0; i < 1000; i++)
16 blah();