diff options
Diffstat (limited to 'test/built-ins/Object/create/15.2.3.5-4-27.js')
-rw-r--r-- | test/built-ins/Object/create/15.2.3.5-4-27.js | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/test/built-ins/Object/create/15.2.3.5-4-27.js b/test/built-ins/Object/create/15.2.3.5-4-27.js index 116c6961b..913f3b4e1 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-27.js +++ b/test/built-ins/Object/create/15.2.3.5-4-27.js @@ -10,22 +10,22 @@ description: > step 5.a) ---*/ -var proto = {}; -Object.defineProperty(proto, "prop", { - get: function() { - return {}; - }, - enumerable: true -}); + var proto = {}; + Object.defineProperty(proto, "prop", { + get: function () { + return {}; + }, + enumerable: true + }); -var ConstructFun = function() {}; -ConstructFun.prototype = proto; + var ConstructFun = function () { }; + ConstructFun.prototype = proto; -var child = new ConstructFun(); -Object.defineProperty(child, "prop", { - set: function() {}, - enumerable: true -}); + var child = new ConstructFun(); + Object.defineProperty(child, "prop", { + set: function () { }, + enumerable: true + }); assert.throws(TypeError, function() { - Object.create({}, child); + Object.create({}, child); }); |