]> git.saurik.com Git - apple/javascriptcore.git/blame - tests/stress/arrayify-to-structure-contradiction.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / arrayify-to-structure-contradiction.js
CommitLineData
ed1e77d3
A
1function foo(array, v, p) {
2 array[0] = 10;
3 if (p)
4 v = "hello";
5 array[0] = v;
6}
7
8noInline(foo);
9
10for (var i = 0; i < 100000; ++i) {
11 var array = [42];
12 foo(array, 43, false);
13 if (array[0] != 43)
14 throw "Error: bad result: " + array;
15}
16