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