diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-3-25.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-3-25.js | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-25.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-25.js index 5bbdda116..2b278d63b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-25.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-25.js @@ -9,30 +9,30 @@ description: > (8.10.5 step 3.a) ---*/ -var obj = {}; -var accessed = false; - -var proto = {}; -Object.defineProperty(proto, "enumerable", { - get: function() { - return false; - } -}); - -var ConstructFun = function() {}; -ConstructFun.prototype = proto; - -var child = new ConstructFun(); -Object.defineProperty(child, "enumerable", { - value: true -}); - -Object.defineProperty(obj, "property", child); - -for (var prop in obj) { - if (prop === "property") { - accessed = true; - } -} + var obj = {}; + var accessed = false; + + var proto = {}; + Object.defineProperty(proto, "enumerable", { + get: function () { + return false; + } + }); + + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + + var child = new ConstructFun(); + Object.defineProperty(child, "enumerable", { + value: true + }); + + Object.defineProperty(obj, "property", child); + + for (var prop in obj) { + if (prop === "property") { + accessed = true; + } + } assert(accessed, 'accessed !== true'); |