diff options
Diffstat (limited to 'test/built-ins/Object/defineProperties/15.2.3.7-6-a-238.js')
-rw-r--r-- | test/built-ins/Object/defineProperties/15.2.3.7-6-a-238.js | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-238.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-238.js index 2874c575f..12f1bdf6b 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-238.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-238.js @@ -16,27 +16,27 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "1", { - value: "abcd" + value: "abcd" }); try { - Object.defineProperties(arr, { - "1": { - value: "efgh" - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(arr, { + "1": { + value: "efgh" + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arr, "1", "abcd"); + verifyEqualTo(arr, "1", "abcd"); - verifyNotWritable(arr, "1"); + verifyNotWritable(arr, "1"); - verifyNotEnumerable(arr, "1"); + verifyNotEnumerable(arr, "1"); - verifyNotConfigurable(arr, "1"); + verifyNotConfigurable(arr, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } |