blob: 8ee2b251d510f8f8a59645b65f00a8c2a6a8b783 [file] [log] [blame]
var globalResult;
Object.prototype.valueOf = function() { globalResult = 1; }
function foo() {
globalResult = 0;
+arguments;
return globalResult;
}
noInline(foo);
for (var i = 0; i < 10000; ++i) {
var result = foo();
if (result !== 1)
throw "Error: bad result: " + result;
}