]> git.saurik.com Git - apple/javascriptcore.git/blob - 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
1 function foo(o) {
2 return o.length;
3 }
4
5 noInline(foo);
6
7 for (var i = 0; i < 10000; ++i) {
8 var a = [1];
9 a.length = 99999999;
10 a.f = 42;
11 foo(a);
12 }
13
14 var result = foo({});
15 if (result !== void 0)
16 throw "Error: bad result: " + result;