]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/ftl-putbyiddirect.js
b50ad0dcb26d41af7abd9e671f743a93b8dfb3f5
[apple/javascriptcore.git] / tests / stress / ftl-putbyiddirect.js
1 function foo(x){
2 return { 0 : 1 , a : x }
3 }
4
5 noInline(foo);
6
7 for (var i = 0; i < 100000; ++i)
8 o = foo(i);
9
10 if (o.a != 99999 || o[0] != 1)
11 throw "Error"
12