diff options
author | Leo Balter <leonardo.balter@gmail.com> | 2018-02-15 13:57:39 -0500 |
---|---|---|
committer | Leo Balter <leonardo.balter@gmail.com> | 2018-02-15 16:45:10 -0500 |
commit | 3325e2a516a38936686fb0163b8f8a5292f8256e (patch) | |
tree | ede08c1460468c9a44647a5b0aa3261089bb65c4 /test/built-ins/TypedArray/prototype/some/BigInt/callbackfn-no-interaction-over-non-integer.js | |
parent | 296657cd90023e89218016870bd972267b4cd33a (diff) | |
download | qtdeclarative-testsuites-3325e2a516a38936686fb0163b8f8a5292f8256e.tar.gz |
Minimize use of convertToBigInt
Diffstat (limited to 'test/built-ins/TypedArray/prototype/some/BigInt/callbackfn-no-interaction-over-non-integer.js')
-rw-r--r-- | test/built-ins/TypedArray/prototype/some/BigInt/callbackfn-no-interaction-over-non-integer.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/built-ins/TypedArray/prototype/some/BigInt/callbackfn-no-interaction-over-non-integer.js b/test/built-ins/TypedArray/prototype/some/BigInt/callbackfn-no-interaction-over-non-integer.js index b01b5e621..df9b85c7c 100644 --- a/test/built-ins/TypedArray/prototype/some/BigInt/callbackfn-no-interaction-over-non-integer.js +++ b/test/built-ins/TypedArray/prototype/some/BigInt/callbackfn-no-interaction-over-non-integer.js @@ -19,7 +19,7 @@ features: [BigInt, Symbol, TypedArray] ---*/ testWithBigIntTypedArrayConstructors(function(TA) { - var sample = new TA(convertToBigInt([7, 8])); + var sample = new TA([7n, 8n]); var results = []; @@ -35,6 +35,6 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.sameValue(results[0][1], 0, "results[0][1] - key"); assert.sameValue(results[1][1], 1, "results[1][1] - key"); - assert.sameValue(results[0][0], convertToBigInt(7), "results[0][0] - value"); - assert.sameValue(results[1][0], convertToBigInt(8), "results[1][0] - value"); + assert.sameValue(results[0][0], 7n, "results[0][0] - value"); + assert.sameValue(results[1][0], 8n, "results[1][0] - value"); }); |