diff options
Diffstat (limited to 'test/built-ins/Object/defineProperties/15.2.3.7-6-a-72.js')
-rw-r--r-- | test/built-ins/Object/defineProperties/15.2.3.7-6-a-72.js | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-72.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-72.js index a7e08fd5d..45b00d5b2 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-72.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-72.js @@ -14,30 +14,30 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: 10, - writable: false, - configurable: false +Object.defineProperty(obj, "foo", { + value: 10, + writable: false, + configurable: false }); try { - Object.defineProperties(obj, { - foo: { - value: 20 - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + foo: { + value: 20 + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", 10); + verifyEqualTo(obj, "foo", 10); - 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); + } } |