diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-7.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-4-7.js | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-7.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-7.js index 036161d3a..1c0cf64e9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-7.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-7.js @@ -12,17 +12,23 @@ description: > [[Configurable]] from false to true ---*/ - var o = {}; +var o = {}; - // create a data valued property; all other attributes default to false. - var d1 = { value: 101, configurable: false }; - Object.defineProperty(o, "foo", d1); +// create a data valued property; all other attributes default to false. +var d1 = { + value: 101, + configurable: false +}; +Object.defineProperty(o, "foo", d1); - var desc = { value: 101, configurable: true }; +var desc = { + value: 101, + configurable: true +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); - // the property should remain unchanged. - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +// the property should remain unchanged. +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.value, 101, 'd2.value'); assert.sameValue(d2.configurable, false, 'd2.configurable'); |