summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug779631.js
blob: 087aa01ac29077cb21bd9bfe509a97cb8c689b23 (plain)
1
2
3
4
5
6
7
8
9
var flag = 0;
var a = {};
Object.defineProperty(a, "value", {set: function(x) {}});
a.watch("value", function(){flag++;});

for(var i = 0; i < 100; i++) {
    a.value = i;
    assertEq(flag, i+1);
}