summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Array/prototype/reduce
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Array/prototype/reduce')
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/reduce/callbackfn-resize-arraybuffer.js2
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/reduce/length.js11
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/reduce/name.js11
-rw-r--r--js/src/tests/test262/built-ins/Array/prototype/reduce/not-a-constructor.js2
4 files changed, 14 insertions, 12 deletions
diff --git a/js/src/tests/test262/built-ins/Array/prototype/reduce/callbackfn-resize-arraybuffer.js b/js/src/tests/test262/built-ins/Array/prototype/reduce/callbackfn-resize-arraybuffer.js
index 7196680bec..cead90d05f 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/reduce/callbackfn-resize-arraybuffer.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/reduce/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/reduce/length.js b/js/src/tests/test262/built-ins/Array/prototype/reduce/length.js
index 46705546bd..4ed6ddc04a 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/reduce/length.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/reduce/length.js
@@ -21,10 +21,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Array.prototype.reduce.length, 1);
-
-verifyNotEnumerable(Array.prototype.reduce, 'length');
-verifyNotWritable(Array.prototype.reduce, 'length');
-verifyConfigurable(Array.prototype.reduce, 'length');
+verifyProperty(Array.prototype.reduce, "length", {
+ value: 1,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Array/prototype/reduce/name.js b/js/src/tests/test262/built-ins/Array/prototype/reduce/name.js
index 0b368568bd..83b9a265e8 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/reduce/name.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/reduce/name.js
@@ -19,10 +19,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(Array.prototype.reduce.name, "reduce");
-
-verifyNotEnumerable(Array.prototype.reduce, "name");
-verifyNotWritable(Array.prototype.reduce, "name");
-verifyConfigurable(Array.prototype.reduce, "name");
+verifyProperty(Array.prototype.reduce, "name", {
+ value: "reduce",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/Array/prototype/reduce/not-a-constructor.js b/js/src/tests/test262/built-ins/Array/prototype/reduce/not-a-constructor.js
index 66a7e1f277..719facd021 100644
--- a/js/src/tests/test262/built-ins/Array/prototype/reduce/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/Array/prototype/reduce/not-a-constructor.js
@@ -29,7 +29,7 @@ assert.sameValue(
assert.throws(TypeError, () => {
new Array.prototype.reduce(() => {}, []);
-}, '`new Array.prototype.reduce(() => {}, [])` throws TypeError');
+});
reportCompare(0, 0);