summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testBug607659.js
blob: edfda935c3f9c8a70788972fa448c9194557351f (plain)
1
2
3
4
5
6
7
8
var g = 0;
Object.defineProperty(RegExp.prototype, 'test', { get:function() { ++g } });
function f() {
    for (var i = 0; i < 100; ++i)
        /a/.exec('a');
}
f();
assertEq(g, 0);