diff options
Diffstat (limited to 'test/built-ins/Object/create/15.2.3.5-4-183.js')
-rw-r--r-- | test/built-ins/Object/create/15.2.3.5-4-183.js | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/test/built-ins/Object/create/15.2.3.5-4-183.js b/test/built-ins/Object/create/15.2.3.5-4-183.js index 5d35785a0..abd7e52bd 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-183.js +++ b/test/built-ins/Object/create/15.2.3.5-4-183.js @@ -9,32 +9,32 @@ description: > accessor property (8.10.5 step 6.a) ---*/ -var proto = {}; + var proto = {}; -Object.defineProperty(proto, "writable", { - get: function() { - return false; - } -}); + Object.defineProperty(proto, "writable", { + get: function () { + return false; + } + }); -var ConstructFun = function() {}; -ConstructFun.prototype = proto; + var ConstructFun = function () { }; + ConstructFun.prototype = proto; -var descObj = new ConstructFun(); + var descObj = new ConstructFun(); -Object.defineProperty(descObj, "writable", { - value: true -}); + Object.defineProperty(descObj, "writable", { + value: true + }); -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'); |