summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/ArrayBuffer/prototype/slice
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/ArrayBuffer/prototype/slice')
-rw-r--r--js/src/tests/test262/built-ins/ArrayBuffer/prototype/slice/length.js11
-rw-r--r--js/src/tests/test262/built-ins/ArrayBuffer/prototype/slice/name.js11
-rw-r--r--js/src/tests/test262/built-ins/ArrayBuffer/prototype/slice/not-a-constructor.js2
3 files changed, 13 insertions, 11 deletions
diff --git a/js/src/tests/test262/built-ins/ArrayBuffer/prototype/slice/length.js b/js/src/tests/test262/built-ins/ArrayBuffer/prototype/slice/length.js
index e2a15cec4a..2c1c8c198b 100644
--- a/js/src/tests/test262/built-ins/ArrayBuffer/prototype/slice/length.js
+++ b/js/src/tests/test262/built-ins/ArrayBuffer/prototype/slice/length.js
@@ -22,10 +22,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(ArrayBuffer.prototype.slice.length, 2);
-
-verifyNotEnumerable(ArrayBuffer.prototype.slice, "length");
-verifyNotWritable(ArrayBuffer.prototype.slice, "length");
-verifyConfigurable(ArrayBuffer.prototype.slice, "length");
+verifyProperty(ArrayBuffer.prototype.slice, "length", {
+ value: 2,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/ArrayBuffer/prototype/slice/name.js b/js/src/tests/test262/built-ins/ArrayBuffer/prototype/slice/name.js
index f80ab724da..98df67d368 100644
--- a/js/src/tests/test262/built-ins/ArrayBuffer/prototype/slice/name.js
+++ b/js/src/tests/test262/built-ins/ArrayBuffer/prototype/slice/name.js
@@ -19,10 +19,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(ArrayBuffer.prototype.slice.name, "slice");
-
-verifyNotEnumerable(ArrayBuffer.prototype.slice, "name");
-verifyNotWritable(ArrayBuffer.prototype.slice, "name");
-verifyConfigurable(ArrayBuffer.prototype.slice, "name");
+verifyProperty(ArrayBuffer.prototype.slice, "name", {
+ value: "slice",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/ArrayBuffer/prototype/slice/not-a-constructor.js b/js/src/tests/test262/built-ins/ArrayBuffer/prototype/slice/not-a-constructor.js
index 06ff78c2aa..306c5abdd6 100644
--- a/js/src/tests/test262/built-ins/ArrayBuffer/prototype/slice/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/ArrayBuffer/prototype/slice/not-a-constructor.js
@@ -29,7 +29,7 @@ assert.sameValue(
assert.throws(TypeError, () => {
let ab = new ArrayBuffer(); new ab.slice();
-}, '`let ab = new ArrayBuffer(); new ab.slice()` throws TypeError');
+});
reportCompare(0, 0);