summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testSettingWatchPointOnReadOnlyProp.js
blob: 78c281f05beffedc93881a3276e64e6449a538c2 (plain)
1
2
3
4
5
6
7
for (var i = 0; i < 5; ++i) {
    var o = {}
    Object.defineProperty(o, 'x', { value:"cow", writable:false });
    var r = o.watch('x', function() {});
    assertEq(r, undefined);
    o.x = 4;
}