blob: eac569af7bf62dbaee4b9df88c62a0f8b827ad94 [file] [log] [blame]
function foo() {
return this.f;
}
var binding = foo.bind({f:42});
(function() {
var n = 1000000;
var result = 0;
for (var i = 0; i < n; ++i) {
var myResult = binding();
result += myResult;
}
if (result != n * 42)
throw "Error: bad result: " + result;
})();