summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArray/prototype/reduce/BigInt/callbackfn-set-value-during-iteration.js
diff options
context:
space:
mode:
authorLeo Balter <leonardo.balter@gmail.com>2018-02-15 14:33:06 -0500
committerLeo Balter <leonardo.balter@gmail.com>2018-02-15 16:45:10 -0500
commitc6cd53594089d5ef80da752b7875b1cd01d73540 (patch)
tree47ea58eea2b4813bfa779fb015f289492f3d282b /test/built-ins/TypedArray/prototype/reduce/BigInt/callbackfn-set-value-during-iteration.js
parent3325e2a516a38936686fb0163b8f8a5292f8256e (diff)
downloadqtdeclarative-testsuites-c6cd53594089d5ef80da752b7875b1cd01d73540.tar.gz
Last cases of convertToBigInt
Diffstat (limited to 'test/built-ins/TypedArray/prototype/reduce/BigInt/callbackfn-set-value-during-iteration.js')
-rw-r--r--test/built-ins/TypedArray/prototype/reduce/BigInt/callbackfn-set-value-during-iteration.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/built-ins/TypedArray/prototype/reduce/BigInt/callbackfn-set-value-during-iteration.js b/test/built-ins/TypedArray/prototype/reduce/BigInt/callbackfn-set-value-during-iteration.js
index 272879dfb..d77a8ebda 100644
--- a/test/built-ins/TypedArray/prototype/reduce/BigInt/callbackfn-set-value-during-iteration.js
+++ b/test/built-ins/TypedArray/prototype/reduce/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.reduce(function(acc, val, i) {
if (i > 0) {
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"
);