]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/get-local-elimination.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / get-local-elimination.js
1 var True = true;
2
3 function foo(a) {
4 var x = a;
5 if (True)
6 return a + x;
7 }
8
9 noInline(foo);
10
11 for (var i = 0; i < 10000; ++i) {
12 var result = foo(42);
13 if (result != 84)
14 throw "Error: bad result: " + result;
15 }