summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Array/prototype/sort
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Array/prototype/sort')
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/sort/length.js11
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/sort/name.js11
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/sort/not-a-constructor.js2
3 files changed, 13 insertions, 11 deletions
diff --git a/js/src/tests/test262/built-ins/Array/prototype/sort/length.js b/js/src/tests/test262/built-ins/Array/prototype/sort/length.js
index 67a6be2969..2c386f8955 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/sort/length.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/sort/length.js
@@ -21,10 +21,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Array.prototype.sort.length, 1);
-
-verifyNotEnumerable(Array.prototype.sort, 'length');
-verifyNotWritable(Array.prototype.sort, 'length');
-verifyConfigurable(Array.prototype.sort, 'length');
+verifyProperty(Array.prototype.sort, "length", {
+ value: 1,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Array/prototype/sort/name.js b/js/src/tests/test262/built-ins/Array/prototype/sort/name.js
index 5ec58a1bb8..631cdd1816 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/sort/name.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/sort/name.js
@@ -19,10 +19,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Array.prototype.sort.name, "sort");
-
-verifyNotEnumerable(Array.prototype.sort, "name");
-verifyNotWritable(Array.prototype.sort, "name");
-verifyConfigurable(Array.prototype.sort, "name");
+verifyProperty(Array.prototype.sort, "name", {
+ value: "sort",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Array/prototype/sort/not-a-constructor.js b/js/src/tests/test262/built-ins/Array/prototype/sort/not-a-constructor.js
index e9dd5a40d3..b5cf5325a8 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/sort/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/sort/not-a-constructor.js
@@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Array.prototype.sort), false, 'isConstructor(Arra
assert.throws(TypeError, () => {
new Array.prototype.sort();
-}, '`new Array.prototype.sort()` throws TypeError');
+});
reportCompare(0, 0);