summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArray/prototype/reduceRight/BigInt/callbackfn-set-value-during-iteration.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/TypedArray/prototype/reduceRight/BigInt/callbackfn-set-value-during-iteration.js')
-rw-r--r--test/built-ins/TypedArray/prototype/reduceRight/BigInt/callbackfn-set-value-during-iteration.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/callbackfn-set-value-during-iteration.js b/test/built-ins/TypedArray/prototype/reduceRight/BigInt/callbackfn-set-value-during-iteration.js
index 7b5fc70c2..3442517c0 100644
--- a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/callbackfn-set-value-during-iteration.js
+++ b/test/built-ins/TypedArray/prototype/reduceRight/BigInt/callbackfn-set-value-during-iteration.js
@@ -20,12 +20,12 @@ features: [BigInt, Reflect.set, TypedArray]
testWithBigIntTypedArrayConstructors(function(TA) {
var sample = new TA([42n, 43n, 44n]);
- var newVal = 0;
+ var newVal = 0n;
sample.reduceRight(function(acc, val, i) {
if (i < sample.length - 1) {
assert.sameValue(
- sample[i + 1], convertToBigInt(newVal - 1),
+ sample[i + 1], newVal - 1n,
"get the changed value during the loop"
);
assert.sameValue(
@@ -35,7 +35,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
);
}
assert.sameValue(
- Reflect.set(sample, i, convertToBigInt(newVal)),
+ Reflect.set(sample, i, newVal),
true,
"set value during iteration"
);