summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug774257-1.js
blob: 9c998a028ebb3a25e2ccd7110fb0bd2dfc2a8f90 (plain)
1
2
3
4
5
6
7
8
Object.defineProperty(Object.prototype, 'x', { 
    set: function() { evalcx('lazy'); } 
});
var obj = {};
obj.watch("x", function (id, oldval, newval) {});
for (var str in 'A') {
    obj.x = 1;
}