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/map/BigInt/callbackfn-set-value-during-interaction.js | |
parent | 296657cd90023e89218016870bd972267b4cd33a (diff) | |
download | qtdeclarative-testsuites-3325e2a516a38936686fb0163b8f8a5292f8256e.tar.gz |
Minimize use of convertToBigInt
Diffstat (limited to 'test/built-ins/TypedArray/prototype/map/BigInt/callbackfn-set-value-during-interaction.js')
-rw-r--r-- | test/built-ins/TypedArray/prototype/map/BigInt/callbackfn-set-value-during-interaction.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/built-ins/TypedArray/prototype/map/BigInt/callbackfn-set-value-during-interaction.js b/test/built-ins/TypedArray/prototype/map/BigInt/callbackfn-set-value-during-interaction.js index 2e0f7eed1..9e140cd82 100644 --- a/test/built-ins/TypedArray/prototype/map/BigInt/callbackfn-set-value-during-interaction.js +++ b/test/built-ins/TypedArray/prototype/map/BigInt/callbackfn-set-value-during-interaction.js @@ -12,7 +12,7 @@ features: [BigInt, Reflect.set, TypedArray] ---*/ testWithBigIntTypedArrayConstructors(function(TA) { - var sample = new TA(convertToBigInt([42, 43, 44])); + var sample = new TA([42n, 43n, 44n]); var newVal = 0; sample.map(function(val, i) { @@ -22,7 +22,7 @@ testWithBigIntTypedArrayConstructors(function(TA) { "get the changed value during the loop" ); assert.sameValue( - Reflect.set(sample, 0, convertToBigInt(7)), + Reflect.set(sample, 0, 7n), true, "re-set a value for sample[0]" ); @@ -34,10 +34,10 @@ testWithBigIntTypedArrayConstructors(function(TA) { ); newVal++; - return convertToBigInt(0); + return 0n; }); - assert.sameValue(sample[0], convertToBigInt(7), "changed values after iteration [0] == 7"); - assert.sameValue(sample[1], convertToBigInt(1), "changed values after iteration [1] == 1"); - assert.sameValue(sample[2], convertToBigInt(2), "changed values after iteration [2] == 2"); + assert.sameValue(sample[0], 7n, "changed values after iteration [0] == 7"); + assert.sameValue(sample[1], 1n, "changed values after iteration [1] == 1"); + assert.sameValue(sample[2], 2n, "changed values after iteration [2] == 2"); }); |