summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/defineProperties/15.2.3.7-6-a-87.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/defineProperties/15.2.3.7-6-a-87.js')
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-87.js31
1 files changed, 16 insertions, 15 deletions
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-87.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-87.js
index 13dbde09c..c62ac4b97 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-87.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-87.js
@@ -14,32 +14,33 @@ includes: [propertyHelper.js]
var obj = {};
function set_func1(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
Object.defineProperty(obj, "foo", {
- set: set_func1,
- configurable: false
+ set: set_func1,
+ configurable: false
});
function set_func2() {}
try {
- Object.defineProperties(obj, {
- foo: {
- set: set_func2
- }
- });
- $ERROR("Expected an exception.");
+ Object.defineProperties(obj, {
+ foo: {
+ set: set_func2
+ }
+ });
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyWritable(obj, "foo", "setVerifyHelpProp");
+ verifyWritable(obj, "foo", "setVerifyHelpProp");
- 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);
+ }
}
+