blob: e6078b58002f6889ac79b1e1529a6c55b841138f [file] [log] [blame]
// Note that this only fails in eager compilation.
function each(ary, func) {
if (ary)
for (var i = 0; i < ary.length && (!ary[i] ||!func(ary[i], i, ary)); i += 1);
}
var blah = function () {
var func = function() {
return (function () { }).apply(Object, arguments);
};
each([ {}, {} ], func);
};
for (var i = 0; i < 1000; i++)
blah();