summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArray/prototype/slice/BigInt
diff options
context:
space:
mode:
authorLeo Balter <leonardo.balter@gmail.com>2018-02-15 14:33:06 -0500
committerLeo Balter <leonardo.balter@gmail.com>2018-02-15 16:45:10 -0500
commitc6cd53594089d5ef80da752b7875b1cd01d73540 (patch)
tree47ea58eea2b4813bfa779fb015f289492f3d282b /test/built-ins/TypedArray/prototype/slice/BigInt
parent3325e2a516a38936686fb0163b8f8a5292f8256e (diff)
downloadqtdeclarative-testsuites-c6cd53594089d5ef80da752b7875b1cd01d73540.tar.gz
Last cases of convertToBigInt
Diffstat (limited to 'test/built-ins/TypedArray/prototype/slice/BigInt')
-rw-r--r--test/built-ins/TypedArray/prototype/slice/BigInt/set-values-from-different-ctor-type.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/built-ins/TypedArray/prototype/slice/BigInt/set-values-from-different-ctor-type.js b/test/built-ins/TypedArray/prototype/slice/BigInt/set-values-from-different-ctor-type.js
index 93b074f1f..092bf2e7d 100644
--- a/test/built-ins/TypedArray/prototype/slice/BigInt/set-values-from-different-ctor-type.js
+++ b/test/built-ins/TypedArray/prototype/slice/BigInt/set-values-from-different-ctor-type.js
@@ -30,10 +30,10 @@ includes: [testBigIntTypedArray.js, compareArray.js]
features: [BigInt, Symbol.species, TypedArray]
---*/
-var arr = [42, 43, 44];
+var arr = [42n 43n, 44n];
testWithBigIntTypedArrayConstructors(function(TA) {
- var sample = new TA(convertToBigInt(arr));
+ var sample = new TA(arr);
var other = TA === BigInt64Array ? BigUint64Array : BigInt64Array;
sample.constructor = {};
@@ -41,7 +41,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
var result = sample.slice();
- assert(compareArray(result, convertToBigInt(arr)), "values are set");
+ assert(compareArray(result, arr), "values are set");
assert.notSameValue(result.buffer, sample.buffer, "creates a new buffer");
assert.sameValue(result.constructor, other, "used the custom ctor");
});