diff options
Diffstat (limited to 'test/built-ins/TypedArray/prototype/toLocaleString/BigInt/return-abrupt-from-nextelement-tolocalestring.js')
-rw-r--r-- | test/built-ins/TypedArray/prototype/toLocaleString/BigInt/return-abrupt-from-nextelement-tolocalestring.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/return-abrupt-from-nextelement-tolocalestring.js b/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/return-abrupt-from-nextelement-tolocalestring.js index 1bac9b691..987146990 100644 --- a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/return-abrupt-from-nextelement-tolocalestring.js +++ b/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/return-abrupt-from-nextelement-tolocalestring.js @@ -34,11 +34,9 @@ BigInt.prototype.toLocaleString = function() { } }; -var arr = [42, 0]; - testWithBigIntTypedArrayConstructors(function(TA) { calls = 0; - var sample = new TA(convertToBigInt(arr)); + var sample = new TA([42n, 0n]); assert.throws(Test262Error, function() { sample.toLocaleString(); }); |