diff options
Diffstat (limited to 'test/built-ins/Object/create/15.2.3.5-4-39.js')
-rw-r--r-- | test/built-ins/Object/create/15.2.3.5-4-39.js | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/test/built-ins/Object/create/15.2.3.5-4-39.js b/test/built-ins/Object/create/15.2.3.5-4-39.js index 6bd0d2a9a..7b644636a 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-39.js +++ b/test/built-ins/Object/create/15.2.3.5-4-39.js @@ -9,19 +9,25 @@ description: > 5.a) ---*/ - var props = {}; - props.prop1 = { value: 12, enumerable: true }; - props.prop2 = { value: true, enumerable: true }; +var props = {}; +props.prop1 = { + value: 12, + enumerable: true +}; +props.prop2 = { + value: true, + enumerable: true +}; - var tempArray = []; - for (var p in props) { - if (props.hasOwnProperty(p)) { - tempArray.push(p); - } - } +var tempArray = []; +for (var p in props) { + if (props.hasOwnProperty(p)) { + tempArray.push(p); + } +} - var newObj = Object.create({}, props); - var index = 0; - for (var q in newObj) { - assert.sameValue(tempArray[index++] !== q && newObj.hasOwnProperty(q), false, 'tempArray[index++] !== q && newObj.hasOwnProperty(q)'); - } +var newObj = Object.create({}, props); +var index = 0; +for (var q in newObj) { + assert.sameValue(tempArray[index++] !== q && newObj.hasOwnProperty(q), false, 'tempArray[index++] !== q && newObj.hasOwnProperty(q)'); +} |