summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/defineProperty/15.2.3.6-3-194.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-3-194.js')
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-194.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-194.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-194.js
index b79826339..df8ac1084 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-194.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-194.js
@@ -8,17 +8,15 @@ description: >
Number object (8.10.5 step 6.b)
---*/
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "property", {
- writable: new Number(123)
-});
+ Object.defineProperty(obj, "property", { writable: new Number(123) });
-var beforeWrite = obj.hasOwnProperty("property");
+ var beforeWrite = obj.hasOwnProperty("property");
-obj.property = "isWritable";
+ obj.property = "isWritable";
-var afterWrite = (obj.property === "isWritable");
+ var afterWrite = (obj.property === "isWritable");
assert.sameValue(beforeWrite, true, 'beforeWrite');
assert.sameValue(afterWrite, true, 'afterWrite');