diff options
Diffstat (limited to 'test/built-ins/Object/create/15.2.3.5-4-181.js')
-rw-r--r-- | test/built-ins/Object/create/15.2.3.5-4-181.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/built-ins/Object/create/15.2.3.5-4-181.js b/test/built-ins/Object/create/15.2.3.5-4-181.js index 036f352af..dd7c4798c 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-181.js +++ b/test/built-ins/Object/create/15.2.3.5-4-181.js @@ -8,24 +8,24 @@ description: > 'Properties' is an inherited data property (8.10.5 step 6.a) ---*/ -var proto = { - writable: true -}; + var proto = { + writable: true + }; -var ConstructFun = function() {}; -ConstructFun.prototype = proto; + var ConstructFun = function () { }; + ConstructFun.prototype = proto; -var descObj = new ConstructFun(); + var descObj = new ConstructFun(); -var newObj = Object.create({}, { - prop: descObj -}); + var newObj = Object.create({}, { + prop: descObj + }); -var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined"); + var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); -newObj.prop = "isWritable"; + newObj.prop = "isWritable"; -var afterWrite = (newObj.prop === "isWritable"); + var afterWrite = (newObj.prop === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); |