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