summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/defineProperties/15.2.3.7-6-a-67.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/defineProperties/15.2.3.7-6-a-67.js')
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-67.js33
1 files changed, 16 insertions, 17 deletions
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-67.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-67.js
index f90e5acd4..94d360b5e 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-67.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-67.js
@@ -13,33 +13,32 @@ includes: [propertyHelper.js]
var obj = {};
function get_Func() {
- return 10;
+ return 10;
}
Object.defineProperty(obj, "foo", {
- get: get_Func,
- configurable: false
+ get: get_Func,
+ configurable: false
});
try {
- Object.defineProperties(obj, {
- foo: {
- value: 11
- }
- });
+ Object.defineProperties(obj, {
+ foo: {
+ value: 11
+ }
+ });
- $ERROR("Expected TypeError");
+ $ERROR("Expected TypeError");
} catch (e) {
- assert(e instanceof TypeError);
- verifyNotEnumerable(obj, "foo");
+ assert(e instanceof TypeError);
+ verifyNotEnumerable(obj, "foo");
- assert.sameValue(obj.foo, 10);
+ assert.sameValue(obj.foo, 10);
- verifyNotConfigurable(obj, "foo");
+ verifyNotConfigurable(obj, "foo");
- var desc = Object.getOwnPropertyDescriptor(obj, "foo");
+ var desc = Object.getOwnPropertyDescriptor(obj, "foo");
- assert.sameValue(typeof (desc.set), "undefined");
- assert.sameValue(desc.get, get_Func);
+ assert.sameValue(typeof(desc.set), "undefined");
+ assert.sameValue(desc.get, get_Func);
}
-