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