diff options
Diffstat (limited to 'test/built-ins/Object/defineProperties/15.2.3.7-6-a-169.js')
-rw-r--r-- | test/built-ins/Object/defineProperties/15.2.3.7-6-a-169.js | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-169.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-169.js index 0fc11411b..0b72ac3d6 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-169.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-169.js @@ -12,25 +12,25 @@ description: > properties (15.4.5.1 step 3.l.ii) ---*/ -var arr = [0, 1]; + var arr = [0, 1]; assert.throws(TypeError, function() { - Object.defineProperty(arr, "1", { - configurable: false - }); + Object.defineProperty(arr, "1", { + configurable: false + }); - Object.defineProperty(Array.prototype, "1", { - get: function() { - return 2; - }, - configurable: true - }); + Object.defineProperty(Array.prototype, "1", { + get: function () { + return 2; + }, + configurable: true + }); - Object.defineProperties(arr, { - length: { - value: 1 - } - }); + Object.defineProperties(arr, { + length: { + value: 1 + } + }); }); assert.sameValue(arr.length, 2, 'arr.length'); assert(arr.hasOwnProperty("1"), 'arr.hasOwnProperty("1") !== true'); |