summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1189744.js
blob: 6d202e702ca14ca127364c82dfe02447d8b7d9ea (plain)
1
2
3
4
5
6
7
8
9
10
11
var obj;
for (var i = 0; i < 100; i++)
    obj = {a: 7, b: 13, c: 42, d: 0};

Object.defineProperty(obj, "x", {
    get: function () { return 3; }
});
obj.__ob__ = 17;

Object.defineProperty(obj, "c", {value: 8, writable: true});
assertEq(obj.__ob__, 17);