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