summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/defineProperties/15.2.3.7-6-a-113.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/defineProperties/15.2.3.7-6-a-113.js')
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-113.js22
1 files changed, 10 insertions, 12 deletions
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-113.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-113.js
index 108151ec2..e9286e341 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-113.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-113.js
@@ -9,22 +9,20 @@ description: >
data property (15.4.5.1 step 1)
---*/
-var arrProtoLen;
-var arr = [0, 1, 2];
+ var arrProtoLen;
+ var arr = [0, 1, 2];
assert.throws(TypeError, function() {
- arrProtoLen = Array.prototype.length;
- Array.prototype.length = 0;
+ arrProtoLen = Array.prototype.length;
+ Array.prototype.length = 0;
- Object.defineProperty(arr, "2", {
- configurable: false
- });
+ Object.defineProperty(arr, "2", {
+ configurable: false
+ });
- Object.defineProperties(arr, {
- length: {
- value: 1
- }
- });
+ Object.defineProperties(arr, {
+ length: { value: 1 }
+ });
});
var desc = Object.getOwnPropertyDescriptor(arr, "length");