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