diff options
Diffstat (limited to 'test/built-ins/Object/create/15.2.3.5-4-23.js')
-rw-r--r-- | test/built-ins/Object/create/15.2.3.5-4-23.js | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/test/built-ins/Object/create/15.2.3.5-4-23.js b/test/built-ins/Object/create/15.2.3.5-4-23.js index 9dce4997c..f7ebf041f 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-23.js +++ b/test/built-ins/Object/create/15.2.3.5-4-23.js @@ -9,27 +9,25 @@ description: > in 'obj' (15.2.3.7 step 5.a) ---*/ -var proto = {}; -Object.defineProperty(proto, "prop", { - get: function() { - return { - value: 9 - }; - }, - enumerable: true -}); + var proto = {}; + Object.defineProperty(proto, "prop", { + get: function () { + return { value: 9 }; + }, + enumerable: true + }); -var ConstructFun = function() {}; -ConstructFun.prototype = proto; + var ConstructFun = function () { }; + ConstructFun.prototype = proto; -var child = new ConstructFun(); -Object.defineProperty(child, "prop", { - value: { - value: 12 - }, - enumerable: true -}); -var newObj = Object.create({}, child); + var child = new ConstructFun(); + Object.defineProperty(child, "prop", { + value: { + value: 12 + }, + enumerable: true + }); + var newObj = Object.create({}, child); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); assert.sameValue(newObj.prop, 12, 'newObj.prop'); |