Source code
Revision control
Copy as Markdown
Other Tools
Function.prototype.call = function() {};
var sum = 0;
function foo() { sum++; }
for (var i = 0; i < 1000; i++) {
foo.call({}, 0);
}
assertEq(sum, 0);
Function.prototype.call = function() {};
var sum = 0;
function foo() { sum++; }
for (var i = 0; i < 1000; i++) {
foo.call({}, 0);
}
assertEq(sum, 0);