summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArray/prototype/reduce/BigInt/result-is-last-callbackfn-return.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/TypedArray/prototype/reduce/BigInt/result-is-last-callbackfn-return.js')
-rw-r--r--test/built-ins/TypedArray/prototype/reduce/BigInt/result-is-last-callbackfn-return.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/built-ins/TypedArray/prototype/reduce/BigInt/result-is-last-callbackfn-return.js b/test/built-ins/TypedArray/prototype/reduce/BigInt/result-is-last-callbackfn-return.js
index 83e9a723f..2c424d4c8 100644
--- a/test/built-ins/TypedArray/prototype/reduce/BigInt/result-is-last-callbackfn-return.js
+++ b/test/built-ins/TypedArray/prototype/reduce/BigInt/result-is-last-callbackfn-return.js
@@ -38,7 +38,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
var calls, result;
calls = 0;
- result = new TA(convertToBigInt([1, 2, 3])).reduce(function() {
+ result = new TA([1n, 2n, 3n]).reduce(function() {
calls++;
if (calls == 2) {
@@ -48,7 +48,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
assert.sameValue(result, 42, "using default accumulator");
calls = 0;
- result = new TA(convertToBigInt([1, 2, 3])).reduce(function() {
+ result = new TA([1n, 2n, 3n]).reduce(function() {
calls++;
if (calls == 3) {