summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Array/prototype/reduceRight
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Array/prototype/reduceRight')
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/reduceRight/callbackfn-resize-arraybuffer.js2
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/reduceRight/length.js11
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/reduceRight/name.js11
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/reduceRight/not-a-constructor.js2
4 files changed, 14 insertions, 12 deletions
diff --git a/js/src/tests/test262/built-ins/Array/prototype/reduceRight/callbackfn-resize-arraybuffer.js b/js/src/tests/test262/built-ins/Array/prototype/reduceRight/callbackfn-resize-arraybuffer.js
index 8704bccee9..bf2ee11cc8 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/reduceRight/callbackfn-resize-arraybuffer.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/reduceRight/callbackfn-resize-arraybuffer.js
@@ -1,4 +1,4 @@
-// |reftest| shell-option(--enable-arraybuffer-resizable) skip-if(!ArrayBuffer.prototype.resize||!xulRuntime.shell) -- resizable-arraybuffer is not enabled unconditionally, requires shell-options
+// |reftest| shell-option(--enable-arraybuffer-resizable) shell-option(--enable-float16array) skip-if(!ArrayBuffer.prototype.resize||!xulRuntime.shell) -- resizable-arraybuffer is not enabled unconditionally, requires shell-options
// Copyright (C) 2021 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
diff --git a/js/src/tests/test262/built-ins/Array/prototype/reduceRight/length.js b/js/src/tests/test262/built-ins/Array/prototype/reduceRight/length.js
index 4f02036c8d..9a2e44850c 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/reduceRight/length.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/reduceRight/length.js
@@ -21,10 +21,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Array.prototype.reduceRight.length, 1);
-
-verifyNotEnumerable(Array.prototype.reduceRight, 'length');
-verifyNotWritable(Array.prototype.reduceRight, 'length');
-verifyConfigurable(Array.prototype.reduceRight, 'length');
+verifyProperty(Array.prototype.reduceRight, "length", {
+ value: 1,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Array/prototype/reduceRight/name.js b/js/src/tests/test262/built-ins/Array/prototype/reduceRight/name.js
index c3e90f6957..b4a4060073 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/reduceRight/name.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/reduceRight/name.js
@@ -19,10 +19,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Array.prototype.reduceRight.name, "reduceRight");
-
-verifyNotEnumerable(Array.prototype.reduceRight, "name");
-verifyNotWritable(Array.prototype.reduceRight, "name");
-verifyConfigurable(Array.prototype.reduceRight, "name");
+verifyProperty(Array.prototype.reduceRight, "name", {
+ value: "reduceRight",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Array/prototype/reduceRight/not-a-constructor.js b/js/src/tests/test262/built-ins/Array/prototype/reduceRight/not-a-constructor.js
index 77e7e825b3..b42a04f7fc 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/reduceRight/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/reduceRight/not-a-constructor.js
@@ -29,7 +29,7 @@ assert.sameValue(
assert.throws(TypeError, () => {
new Array.prototype.reduceRight(() => {}, []);
-}, '`new Array.prototype.reduceRight(() => {}, [])` throws TypeError');
+});
reportCompare(0, 0);