]> git.saurik.com Git - apple/javascriptcore.git/blame - tests/stress/array-length-array-storage-plain-object.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / array-length-array-storage-plain-object.js
CommitLineData
ed1e77d3
A
1function foo(o) {
2 return o.length;
3}
4
5noInline(foo);
6
7for (var i = 0; i < 10000; ++i) {
8 var a = [1];
9 a.length = 99999999;
10 a.f = 42;
11 foo(a);
12}
13
14var result = foo({});
15if (result !== void 0)
16 throw "Error: bad result: " + result;