summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Array/prototype/toLocaleString
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Array/prototype/toLocaleString')
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/toLocaleString/length.js11
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/toLocaleString/name.js11
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/toLocaleString/not-a-constructor.js2
3 files changed, 13 insertions, 11 deletions
diff --git a/js/src/tests/test262/built-ins/Array/prototype/toLocaleString/length.js b/js/src/tests/test262/built-ins/Array/prototype/toLocaleString/length.js
index bc24898e1e..03232222e7 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/toLocaleString/length.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/toLocaleString/length.js
@@ -21,10 +21,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Array.prototype.toLocaleString.length, 0);
-
-verifyNotEnumerable(Array.prototype.toLocaleString, 'length');
-verifyNotWritable(Array.prototype.toLocaleString, 'length');
-verifyConfigurable(Array.prototype.toLocaleString, 'length');
+verifyProperty(Array.prototype.toLocaleString, "length", {
+ value: 0,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Array/prototype/toLocaleString/name.js b/js/src/tests/test262/built-ins/Array/prototype/toLocaleString/name.js
index 54f2c57bcb..418664ead2 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/toLocaleString/name.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/toLocaleString/name.js
@@ -19,10 +19,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Array.prototype.toLocaleString.name, "toLocaleString");
-
-verifyNotEnumerable(Array.prototype.toLocaleString, "name");
-verifyNotWritable(Array.prototype.toLocaleString, "name");
-verifyConfigurable(Array.prototype.toLocaleString, "name");
+verifyProperty(Array.prototype.toLocaleString, "name", {
+ value: "toLocaleString",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Array/prototype/toLocaleString/not-a-constructor.js b/js/src/tests/test262/built-ins/Array/prototype/toLocaleString/not-a-constructor.js
index def6d25864..b040fae76f 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/toLocaleString/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/toLocaleString/not-a-constructor.js
@@ -29,7 +29,7 @@ assert.sameValue(
assert.throws(TypeError, () => {
new Array.prototype.toLocaleString();
-}, '`new Array.prototype.toLocaleString()` throws TypeError');
+});
reportCompare(0, 0);