summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/defineProperty/15.2.3.6-4-95.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-95.js')
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-95.js34
1 files changed, 20 insertions, 14 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-95.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-95.js
index 593676afc..4157be577 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-95.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-95.js
@@ -14,30 +14,36 @@ includes: [propertyHelper.js]
var obj = {};
-var obj1 = { length: 10 };
+var obj1 = {
+ length: 10
+};
Object.defineProperty(obj, "foo", {
- value: obj1,
- writable: false,
- configurable: false
+ value: obj1,
+ writable: false,
+ configurable: false
});
-var obj2 = { length: 20 };
+var obj2 = {
+ length: 20
+};
try {
- Object.defineProperty(obj, "foo", { value: obj2 });
- $ERROR("Expected an exception.");
+ Object.defineProperty(obj, "foo", {
+ value: obj2
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(obj, "foo", obj1);
+ verifyEqualTo(obj, "foo", obj1);
- verifyNotWritable(obj, "foo");
+ verifyNotWritable(obj, "foo");
- verifyNotEnumerable(obj, "foo");
+ verifyNotEnumerable(obj, "foo");
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}