]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/ftl-checkin-variable.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / ftl-checkin-variable.js
1 function foo(l,x){
2 var t = l in x;
3 return t;
4 }
5
6 noInline(foo);
7
8 var r;
9 for (var i = 0; i < 1000000; ++i) {
10 var z = { 'y' : i, 's' : i + 1 };
11 z.s = 10;
12 r = foo("s",z);
13 }
14
15 if (!r) {
16 print ("Error: " + r);
17 }