blob: caf6d116d8e62a202ef7ee704930e5bb77671e5b [file] [log] [blame]
function testStuff(x, y) {
for (var i = 0; i < 60; i++) {
x[y]();
x[y];
}
}
testStuff({"elements":function(){}}, "elements");
var o = {
res: 0,
f: function() { this.res += 3; },
__noSuchMethod__: function() { this.res += 5; }
};
function testNoSuchMethod(x, y) {
for (var i = 0; i < 60; i++) {
x[y]();
}
}
testNoSuchMethod(o, "f");
assertEq(o.res, 180);