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