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