summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/defineProperty/15.2.3.6-4-364.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-364.js')
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-364.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-364.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-364.js
index 75f086e41..2bca77ac7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-364.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-364.js
@@ -9,22 +9,22 @@ description: >
[[Configurable]] is false) to different value
---*/
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "prop", {
- value: 2010,
- writable: false,
- enumerable: true,
- configurable: false
-});
-var propertyDefineCorrect = obj.hasOwnProperty("prop");
-var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
+ Object.defineProperty(obj, "prop", {
+ value: 2010,
+ writable: false,
+ enumerable: true,
+ configurable: false
+ });
+ var propertyDefineCorrect = obj.hasOwnProperty("prop");
+ var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "prop", {
- writable: true
- });
+ Object.defineProperty(obj, "prop", {
+ writable: true
+ });
});
-var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
+ var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
assert(propertyDefineCorrect, 'propertyDefineCorrect !== true');
assert.sameValue(desc1.writable, false, 'desc1.writable');