diff options
Diffstat (limited to 'test/built-ins/Object/create/15.2.3.5-4-185.js')
-rw-r--r-- | test/built-ins/Object/create/15.2.3.5-4-185.js | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/test/built-ins/Object/create/15.2.3.5-4-185.js b/test/built-ins/Object/create/15.2.3.5-4-185.js index e1152493b..9798108c0 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-185.js +++ b/test/built-ins/Object/create/15.2.3.5-4-185.js @@ -8,28 +8,28 @@ description: > 'Properties' is an inherited accessor property (8.10.5 step 6.a) ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "writable", { - get: function () { - return true; - } - }); +Object.defineProperty(proto, "writable", { + get: function() { + return 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'); |