diff options
author | Leo Balter <leonardo.balter@gmail.com> | 2018-02-15 14:33:06 -0500 |
---|---|---|
committer | Leo Balter <leonardo.balter@gmail.com> | 2018-02-15 16:45:10 -0500 |
commit | c6cd53594089d5ef80da752b7875b1cd01d73540 (patch) | |
tree | 47ea58eea2b4813bfa779fb015f289492f3d282b /test/built-ins/TypedArray/prototype/reduceRight/BigInt/callbackfn-set-value-during-iteration.js | |
parent | 3325e2a516a38936686fb0163b8f8a5292f8256e (diff) | |
download | qtdeclarative-testsuites-c6cd53594089d5ef80da752b7875b1cd01d73540.tar.gz |
Last cases of convertToBigInt
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.js | 6 |
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" ); |