summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/return-abrupt-from-firstelement-tostring.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/TypedArray/prototype/toLocaleString/BigInt/return-abrupt-from-firstelement-tostring.js')
-rw-r--r--test/built-ins/TypedArray/prototype/toLocaleString/BigInt/return-abrupt-from-firstelement-tostring.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/return-abrupt-from-firstelement-tostring.js b/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/return-abrupt-from-firstelement-tostring.js
index 3398b29ef..058f684c3 100644
--- a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/return-abrupt-from-firstelement-tostring.js
+++ b/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/return-abrupt-from-firstelement-tostring.js
@@ -43,10 +43,8 @@ BigInt.prototype.toLocaleString = function() {
};
};
-var arr = [42, 0];
-
testWithBigIntTypedArrayConstructors(function(TA) {
- var sample = new TA(convertToBigInt(arr));
+ var sample = new TA([42n, 0n]);
calls = 0;
assert.throws(Test262Error, function() {
sample.toLocaleString();