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/set/BigInt/typedarray-arg-set-values-same-buffer-same-type.js | |
parent | 296657cd90023e89218016870bd972267b4cd33a (diff) | |
download | qtdeclarative-testsuites-3325e2a516a38936686fb0163b8f8a5292f8256e.tar.gz |
Minimize use of convertToBigInt
Diffstat (limited to 'test/built-ins/TypedArray/prototype/set/BigInt/typedarray-arg-set-values-same-buffer-same-type.js')
-rw-r--r-- | test/built-ins/TypedArray/prototype/set/BigInt/typedarray-arg-set-values-same-buffer-same-type.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/built-ins/TypedArray/prototype/set/BigInt/typedarray-arg-set-values-same-buffer-same-type.js b/test/built-ins/TypedArray/prototype/set/BigInt/typedarray-arg-set-values-same-buffer-same-type.js index 8daad3956..ab1454760 100644 --- a/test/built-ins/TypedArray/prototype/set/BigInt/typedarray-arg-set-values-same-buffer-same-type.js +++ b/test/built-ins/TypedArray/prototype/set/BigInt/typedarray-arg-set-values-same-buffer-same-type.js @@ -33,21 +33,21 @@ features: [BigInt, TypedArray] testWithBigIntTypedArrayConstructors(function(TA) { var sample, src, result; - sample = new TA(convertToBigInt([1, 2, 3, 4])); + sample = new TA([1n, 2n, 3n, 4n]); src = new TA(sample.buffer, 0, 2); result = sample.set(src, 0); - assert(compareArray(sample, convertToBigInt([1, 2, 3, 4])), "offset: 0, result: " + sample); + assert(compareArray(sample, [1n, 2n, 3n, 4n]), "offset: 0, result: " + sample); assert.sameValue(result, undefined, "returns undefined"); - sample = new TA(convertToBigInt([1, 2, 3, 4])); + sample = new TA([1n, 2n, 3n, 4n]); src = new TA(sample.buffer, 0, 2); result = sample.set(src, 1); - assert(compareArray(sample, convertToBigInt([1, 1, 2, 4])), "offset: 1, result: " + sample); + assert(compareArray(sample, [1n, 1n, 2n, 4n]), "offset: 1, result: " + sample); assert.sameValue(result, undefined, "returns undefined"); - sample = new TA(convertToBigInt([1, 2, 3, 4])); + sample = new TA([1n, 2n, 3n, 4n]); src = new TA(sample.buffer, 0, 2); result = sample.set(src, 2); - assert(compareArray(sample, convertToBigInt([1, 2, 1, 2])), "offset: 2, result: " + sample); + assert(compareArray(sample, [1n, 2n, 1n, 2n]), "offset: 2, result: " + sample); assert.sameValue(result, undefined, "returns undefined"); }); |