summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/defineProperty/15.2.3.6-3-8.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-3-8.js')
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-8.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-8.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-8.js
index 31591f85f..95eac7daf 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-8.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-8.js
@@ -12,12 +12,14 @@ description: >
but not undefined (Null)(8.10.5 step 7.b)
---*/
- var o = {};
-
- // dummy getter
- var getter = null;
- var desc = { get: getter };
+var o = {};
+
+// dummy getter
+var getter = null;
+var desc = {
+ get: getter
+};
assert.throws(TypeError, function() {
- Object.defineProperty(o, "foo", desc);
+ Object.defineProperty(o, "foo", desc);
});
assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")');