diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-3-32.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-3-32.js | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-32.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-32.js index 112d61a29..b1981975f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-32.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-32.js @@ -9,25 +9,25 @@ description: > 3.a) ---*/ -var obj = {}; -var accessed = false; -var proto = {}; + var obj = {}; + var accessed = false; + var proto = {}; -Object.defineProperty(proto, "enumerable", { - set: function() {} -}); + Object.defineProperty(proto, "enumerable", { + set: function () { } + }); -var ConstructFun = function() {}; -ConstructFun.prototype = proto; + var ConstructFun = function () { }; + ConstructFun.prototype = proto; -var child = new ConstructFun(); + var child = new ConstructFun(); -Object.defineProperty(obj, "property", child); + Object.defineProperty(obj, "property", child); -for (var prop in obj) { - if (prop === "property") { - accessed = true; - } -} + for (var prop in obj) { + if (prop === "property") { + accessed = true; + } + } assert.sameValue(accessed, false, 'accessed'); |