diff options
Diffstat (limited to 'test/built-ins/Object/create/15.2.3.5-4-226.js')
-rw-r--r-- | test/built-ins/Object/create/15.2.3.5-4-226.js | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/test/built-ins/Object/create/15.2.3.5-4-226.js b/test/built-ins/Object/create/15.2.3.5-4-226.js index 25f359e78..5836e8c5e 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-226.js +++ b/test/built-ins/Object/create/15.2.3.5-4-226.js @@ -8,16 +8,18 @@ description: > 'Properties' is an Arguments object (8.10.5 step 6.b) ---*/ - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - var newObj = Object.create({}, { - prop: { - writable: argObj - } - }); - var hasProperty = newObj.hasOwnProperty("prop"); +var newObj = Object.create({}, { + prop: { + writable: argObj + } +}); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = 121; +newObj.prop = 121; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(newObj.prop, 121, 'newObj.prop'); |