diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-3-11.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-3-11.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-11.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-11.js index 28e657393..6de92ffa5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-11.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-11.js @@ -12,12 +12,14 @@ description: > but not undefined (Boolean)(8.10.5 step 8.b) ---*/ - var o = {}; - - // dummy setter - var setter = true; - var desc = { set: setter }; +var o = {}; + +// dummy setter +var setter = true; +var desc = { + set: setter +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); |