diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-65.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-4-65.js | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-65.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-65.js index d420ffa4e..329a9293a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-65.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-65.js @@ -12,26 +12,22 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: +0 -}); +Object.defineProperty(obj, "foo", { value: +0 }); try { - Object.defineProperty(obj, "foo", { - value: -0 - }); - $ERROR("Expected an exception."); + Object.defineProperty(obj, "foo", { value: -0 }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", +0); + verifyEqualTo(obj, "foo", +0); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } |