summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/defineProperties/15.2.3.7-6-a-91.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/defineProperties/15.2.3.7-6-a-91.js')
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-91.js42
1 files changed, 21 insertions, 21 deletions
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-91.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-91.js
index 3698daffb..ec80c007b 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-91.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-91.js
@@ -14,42 +14,42 @@ includes: [propertyHelper.js]
var obj = {};
function set_func(value) {
- obj.setVerifyHelpProp = value;
+ obj.setVerifyHelpProp = value;
}
+
function get_func1() {
- return 10;
+ return 10;
}
Object.defineProperty(obj, "foo", {
- get: get_func1,
- set: set_func,
- enumerable: false,
- configurable: false
+ get: get_func1,
+ set: set_func,
+ enumerable: false,
+ configurable: false
});
function get_func2() {
- return 20;
+ return 20;
}
try {
- Object.defineProperties(obj, {
- foo: {
- get: get_func2
- }
- });
- $ERROR("Expected an exception");
+ Object.defineProperties(obj, {
+ foo: {
+ get: get_func2
+ }
+ });
+ $ERROR("Expected an exception");
} catch (e) {
- verifyEqualTo(obj, "foo", get_func1());
+ verifyEqualTo(obj, "foo", get_func1());
- 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);
+ }
}
-