]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/sink-arguments-past-invalid-check-dfg.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / sink-arguments-past-invalid-check-dfg.js
1 var globalResult;
2 Object.prototype.valueOf = function() { globalResult = 1; }
3
4 function foo() {
5 globalResult = 0;
6 +arguments;
7 return globalResult;
8 }
9
10 noInline(foo);
11
12 for (var i = 0; i < 10000; ++i) {
13 var result = foo();
14 if (result !== 1)
15 throw "Error: bad result: " + result;
16 }
17