diff options
Diffstat (limited to 'test/built-ins/Object/create/15.2.3.5-4-55.js')
-rw-r--r-- | test/built-ins/Object/create/15.2.3.5-4-55.js | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/test/built-ins/Object/create/15.2.3.5-4-55.js b/test/built-ins/Object/create/15.2.3.5-4-55.js index 9c6e201cf..3111507b4 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-55.js +++ b/test/built-ins/Object/create/15.2.3.5-4-55.js @@ -9,31 +9,31 @@ description: > accessor property (8.10.5 step 3.a) ---*/ -var proto = {}; -var accessed = false; -Object.defineProperty(proto, "enumerable", { - get: function() { - return true; - } -}); + var proto = {}; + var accessed = false; + Object.defineProperty(proto, "enumerable", { + get: function () { + return true; + } + }); -var ConstructFun = function() {}; -ConstructFun.prototype = proto; -var descObj = new ConstructFun(); + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var descObj = new ConstructFun(); -Object.defineProperty(descObj, "enumerable", { - get: function() { - return false; - } -}); + Object.defineProperty(descObj, "enumerable", { + get: function () { + return false; + } + }); -var newObj = Object.create({}, { - prop: descObj -}); -for (var property in newObj) { - if (property === "prop") { - accessed = true; - } -} + var newObj = Object.create({}, { + prop: descObj + }); + for (var property in newObj) { + if (property === "prop") { + accessed = true; + } + } assert.sameValue(accessed, false, 'accessed'); |