summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/defineProperty/15.2.3.6-4-29.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-29.js')
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-29.js30
1 files changed, 15 insertions, 15 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-29.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-29.js
index 249380afc..e2553691a 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-29.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-29.js
@@ -8,21 +8,21 @@ description: >
overrides an inherited accessor property (8.12.9 step 1)
---*/
- var proto = {};
- Object.defineProperty(proto, "foo", {
- get: function () { },
- configurable: true
- });
+var proto = {};
+Object.defineProperty(proto, "foo", {
+ get: function() {},
+ configurable: true
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var obj = new ConstructFun();
- Object.defineProperty(obj, "foo", {
- get: function () { },
- configurable: false
- });
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var obj = new ConstructFun();
+Object.defineProperty(obj, "foo", {
+ get: function() {},
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "foo", {
- configurable: true
- });
+ Object.defineProperty(obj, "foo", {
+ configurable: true
+ });
});