summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArray/prototype/sort/BigInt/comparefn-nonfunction-call-throws.js
diff options
context:
space:
mode:
authorLeo Balter <leonardo.balter@gmail.com>2018-02-15 13:57:39 -0500
committerLeo Balter <leonardo.balter@gmail.com>2018-02-15 16:45:10 -0500
commit3325e2a516a38936686fb0163b8f8a5292f8256e (patch)
treeede08c1460468c9a44647a5b0aa3261089bb65c4 /test/built-ins/TypedArray/prototype/sort/BigInt/comparefn-nonfunction-call-throws.js
parent296657cd90023e89218016870bd972267b4cd33a (diff)
downloadqtdeclarative-testsuites-3325e2a516a38936686fb0163b8f8a5292f8256e.tar.gz
Minimize use of convertToBigInt
Diffstat (limited to 'test/built-ins/TypedArray/prototype/sort/BigInt/comparefn-nonfunction-call-throws.js')
-rw-r--r--test/built-ins/TypedArray/prototype/sort/BigInt/comparefn-nonfunction-call-throws.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/built-ins/TypedArray/prototype/sort/BigInt/comparefn-nonfunction-call-throws.js b/test/built-ins/TypedArray/prototype/sort/BigInt/comparefn-nonfunction-call-throws.js
index 80f23f618..4770b66da 100644
--- a/test/built-ins/TypedArray/prototype/sort/BigInt/comparefn-nonfunction-call-throws.js
+++ b/test/built-ins/TypedArray/prototype/sort/BigInt/comparefn-nonfunction-call-throws.js
@@ -19,7 +19,7 @@ features: [BigInt, TypedArray]
---*/
testWithBigIntTypedArrayConstructors(function(TA) {
- var sample = new TA(convertToBigInt([42, 43, 44, 45, 46]));
+ var sample = new TA([42n, 43n, 44n, 45n, 46n]);
assert.throws(TypeError, function() {
sample.sort(null);