diff options
Diffstat (limited to 'test/built-ins/Object/defineProperties/15.2.3.7-6-a-171.js')
-rw-r--r-- | test/built-ins/Object/defineProperties/15.2.3.7-6-a-171.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-171.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-171.js index 8907e2757..ca3db2cb9 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-171.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-171.js @@ -11,20 +11,20 @@ description: > stop deleting index named properties (15.4.5.1 step 3.l.ii) ---*/ -var arr = [0, 1]; + var arr = [0, 1]; -Object.defineProperty(Array.prototype, "1", { - get: function() { - return 1; - }, - configurable: true //we are not allowed to set the [[Configurable]] attribute of property "1" to false here, since Array.prototype is a global object, and non-configurbale property can't revert to configurable -}); + Object.defineProperty(Array.prototype, "1", { + get: function () { + return 1; + }, + configurable: true //we are not allowed to set the [[Configurable]] attribute of property "1" to false here, since Array.prototype is a global object, and non-configurbale property can't revert to configurable + }); -Object.defineProperties(arr, { - length: { - value: 1 - } -}); + Object.defineProperties(arr, { + length: { + value: 1 + } + }); assert.sameValue(arr.length, 1, 'arr.length'); assert.sameValue(arr.hasOwnProperty("1"), false, 'arr.hasOwnProperty("1")'); |