]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/use-arguments-as-object-pointer.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / use-arguments-as-object-pointer.js
1 function foo() {
2 arguments = {f:42};
3 return arguments.f;
4 }
5
6 noInline(foo);
7
8 for (var i = 0; i < 100000; ++i) {
9 var result = foo();
10 if (result != 42)
11 throw "Error: bad result: " + result;
12 }
13