diff options
Diffstat (limited to 'test/built-ins/Object/create/15.2.3.5-4-270.js')
-rw-r--r-- | test/built-ins/Object/create/15.2.3.5-4-270.js | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/test/built-ins/Object/create/15.2.3.5-4-270.js b/test/built-ins/Object/create/15.2.3.5-4-270.js index cbf40fba6..229ab9928 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-270.js +++ b/test/built-ins/Object/create/15.2.3.5-4-270.js @@ -9,28 +9,28 @@ description: > (8.10.5 step 8.a) ---*/ -var data1 = "data"; -var data2 = "data"; -var proto = { - set: function(value) { - data2 = value; - } -}; + var data1 = "data"; + var data2 = "data"; + var proto = { + set: function (value) { + data2 = value; + } + }; -var ConstructFun = function() {}; -ConstructFun.prototype = proto; -var child = new ConstructFun(); -child.set = function(value) { - data1 = value; -}; + var ConstructFun = function () { }; + ConstructFun.prototype = proto; + var child = new ConstructFun(); + child.set = function (value) { + data1 = value; + }; -var newObj = Object.create({}, { - prop: child -}); + var newObj = Object.create({}, { + prop: child + }); -var hasProperty = newObj.hasOwnProperty("prop"); + var hasProperty = newObj.hasOwnProperty("prop"); -newObj.prop = "overrideData"; + newObj.prop = "overrideData"; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(data1, "overrideData", 'data1'); |