summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/defineProperty/15.2.3.6-4-219.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-219.js')
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-219.js24
1 files changed, 14 insertions, 10 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-219.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-219.js
index 3e9acbdd0..d2f045ce5 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-219.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-219.js
@@ -13,22 +13,26 @@ includes: [propertyHelper.js]
var arrObj = [];
-Object.defineProperty(arrObj, "0", { value: +0 });
+Object.defineProperty(arrObj, "0", {
+ value: +0
+});
try {
- Object.defineProperty(arrObj, "0", { value: -0 });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "0", {
+ value: -0
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "0", +0);
+ verifyEqualTo(arrObj, "0", +0);
- verifyNotWritable(arrObj, "0");
+ verifyNotWritable(arrObj, "0");
- verifyNotEnumerable(arrObj, "0");
+ verifyNotEnumerable(arrObj, "0");
- verifyNotConfigurable(arrObj, "0");
+ verifyNotConfigurable(arrObj, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}