]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/new-array-then-exit.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / new-array-then-exit.js
1 function foo(f) {
2 return new f();
3 }
4
5 noInline(foo);
6
7 for (var i = 0; i < 10000; ++i)
8 foo(Array);
9
10 var didCall = false;
11 foo(function() { didCall = true; });
12
13 if (!didCall)
14 throw "Error: didn't call my function.";