diff -r 000000000000 -r 6474c204b198 js/src/jit-test/tests/jaeger/bug732423.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/jit-test/tests/jaeger/bug732423.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,23 @@ +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"); +testNoSuchMethod(o, "g"); +assertEq(o.res, 480);