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-diff-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-diff-buffer-same-type.js')
-rw-r--r-- | test/built-ins/TypedArray/prototype/set/BigInt/typedarray-arg-set-values-diff-buffer-same-type.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/built-ins/TypedArray/prototype/set/BigInt/typedarray-arg-set-values-diff-buffer-same-type.js b/test/built-ins/TypedArray/prototype/set/BigInt/typedarray-arg-set-values-diff-buffer-same-type.js index be938ca51..d806b6a6c 100644 --- a/test/built-ins/TypedArray/prototype/set/BigInt/typedarray-arg-set-values-diff-buffer-same-type.js +++ b/test/built-ins/TypedArray/prototype/set/BigInt/typedarray-arg-set-values-diff-buffer-same-type.js @@ -31,20 +31,20 @@ features: [BigInt, TypedArray] testWithBigIntTypedArrayConstructors(function(TA) { var sample, result; - var src = new TA(convertToBigInt([42, 43])); + var src = new TA([42n, 43n]); - sample = new TA(convertToBigInt([1, 2, 3, 4])); + sample = new TA([1n, 2n, 3n, 4n]); result = sample.set(src, 1); - assert(compareArray(sample, convertToBigInt([1, 42, 43, 4])), "offset: 1, result: " + sample); + assert(compareArray(sample, [1n, 42n, 43n, 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]); result = sample.set(src, 0); - assert(compareArray(sample, convertToBigInt([42, 43, 3, 4])), "offset: 0, result: " + sample); + assert(compareArray(sample, [42n, 43n, 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]); result = sample.set(src, 2); - assert(compareArray(sample, convertToBigInt([1, 2, 42, 43])), "offset: 2, result: " + sample); + assert(compareArray(sample, [1n, 2n, 42n, 43n]), "offset: 2, result: " + sample); assert.sameValue(result, undefined, "returns undefined"); }); |