summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArrays/from/BigInt/new-instance-using-custom-ctor.js
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/TypedArrays/from/BigInt/new-instance-using-custom-ctor.js
parent3325e2a516a38936686fb0163b8f8a5292f8256e (diff)
downloadqtdeclarative-testsuites-c6cd53594089d5ef80da752b7875b1cd01d73540.tar.gz
Last cases of convertToBigInt
Diffstat (limited to 'test/built-ins/TypedArrays/from/BigInt/new-instance-using-custom-ctor.js')
-rw-r--r--test/built-ins/TypedArrays/from/BigInt/new-instance-using-custom-ctor.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/built-ins/TypedArrays/from/BigInt/new-instance-using-custom-ctor.js b/test/built-ins/TypedArrays/from/BigInt/new-instance-using-custom-ctor.js
index 82a37b242..cd012fc88 100644
--- a/test/built-ins/TypedArrays/from/BigInt/new-instance-using-custom-ctor.js
+++ b/test/built-ins/TypedArrays/from/BigInt/new-instance-using-custom-ctor.js
@@ -8,8 +8,6 @@ includes: [testBigIntTypedArray.js]
features: [BigInt, TypedArray]
---*/
-var source = [42, 43, 42];
-
testWithBigIntTypedArrayConstructors(function(TA) {
var called = 0;
@@ -19,7 +17,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
return new TA(len);
};
- var result = TA.from.call(ctor, convertToBigInt(source));
+ var result = TA.from.call(ctor, [42n, 43n, 42n]);
assert.sameValue(result.length, 3);
assert.sameValue(result[0], 42n);
assert.sameValue(result[1], 43n);