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