diff options
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.js | 2 |
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); |