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/fill/BigInt/fill-values-conversion-once.js | |
parent | 3325e2a516a38936686fb0163b8f8a5292f8256e (diff) | |
download | qtdeclarative-testsuites-c6cd53594089d5ef80da752b7875b1cd01d73540.tar.gz |
Last cases of convertToBigInt
Diffstat (limited to 'test/built-ins/TypedArray/prototype/fill/BigInt/fill-values-conversion-once.js')
-rw-r--r-- | test/built-ins/TypedArray/prototype/fill/BigInt/fill-values-conversion-once.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/built-ins/TypedArray/prototype/fill/BigInt/fill-values-conversion-once.js b/test/built-ins/TypedArray/prototype/fill/BigInt/fill-values-conversion-once.js index 2f8bfa008..c87b864f9 100644 --- a/test/built-ins/TypedArray/prototype/fill/BigInt/fill-values-conversion-once.js +++ b/test/built-ins/TypedArray/prototype/fill/BigInt/fill-values-conversion-once.js @@ -17,10 +17,10 @@ features: [BigInt, TypedArray] testWithBigIntTypedArrayConstructors(function(TA) { var sample = new TA(2); - var n = 1; - sample.fill({ valueOf() { return convertToBigInt(n++); } }); + var n = 1n; + sample.fill({ valueOf() { return n++; } }); - assert.sameValue(n, 2, "additional unexpected ToNumber() calls"); + assert.sameValue(n, 2n, "additional unexpected ToNumber() calls"); assert.sameValue(sample[0], 1n, "incorrect ToNumber result in index 0"); assert.sameValue(sample[1], 1n, "incorrect ToNumber result in index 1"); }); |