summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/defineProperty/15.2.3.6-4-225.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-225.js')
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-225.js26
1 files changed, 12 insertions, 14 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-225.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-225.js
index c2da23fe6..a9ccc96f4 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-225.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-225.js
@@ -14,27 +14,25 @@ includes: [propertyHelper.js]
var arrObj = [];
Object.defineProperty(arrObj, 0, {
- value: true,
- writable: false,
- configurable: false
+ value: true,
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperty(arrObj, "0", {
- value: false
- });
- $ERROR("Expected an exception.");
+ Object.defineProperty(arrObj, "0", { value: false });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arrObj, "0", true);
+ verifyEqualTo(arrObj, "0", true);
- 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);
+ }
}