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);