summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/defineProperty/15.2.3.6-4-24.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-24.js')
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-24.js30
1 files changed, 15 insertions, 15 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-24.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-24.js
index a1e7f654f..0a0e6bd27 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-24.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-24.js
@@ -8,22 +8,22 @@ description: >
an inherited data property (8.12.9 step 1)
---*/
- var proto = {};
- Object.defineProperty(proto, "foo", {
- value: 12,
- configurable: true
- });
+var proto = {};
+Object.defineProperty(proto, "foo", {
+ value: 12,
+ configurable: true
+});
- var ConstructFun = function () { };
- ConstructFun.prototype = proto;
- var obj = new ConstructFun();
- Object.defineProperty(obj, "foo", {
- value: 11,
- configurable: false
- });
+var ConstructFun = function() {};
+ConstructFun.prototype = proto;
+var obj = new ConstructFun();
+Object.defineProperty(obj, "foo", {
+ value: 11,
+ configurable: false
+});
assert.throws(TypeError, function() {
- Object.defineProperty(obj, "foo", {
- configurable: true
- });
+ Object.defineProperty(obj, "foo", {
+ configurable: true
+ });
});
assert.sameValue(obj.foo, 11, 'obj.foo');