summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArrays/of/BigInt/custom-ctor-returns-smaller-instance-throws.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/TypedArrays/of/BigInt/custom-ctor-returns-smaller-instance-throws.js')
-rw-r--r--test/built-ins/TypedArrays/of/BigInt/custom-ctor-returns-smaller-instance-throws.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/built-ins/TypedArrays/of/BigInt/custom-ctor-returns-smaller-instance-throws.js b/test/built-ins/TypedArrays/of/BigInt/custom-ctor-returns-smaller-instance-throws.js
index cddf2c4cf..f174540ef 100644
--- a/test/built-ins/TypedArrays/of/BigInt/custom-ctor-returns-smaller-instance-throws.js
+++ b/test/built-ins/TypedArrays/of/BigInt/custom-ctor-returns-smaller-instance-throws.js
@@ -17,12 +17,12 @@ includes: [testBigIntTypedArray.js]
features: [BigInt, TypedArray]
---*/
-testWithTypedArrayConstructors(function(TA) {
+testWithBigIntTypedArrayConstructors(function(TA) {
var ctor = function() {
return new TA(1);
};
assert.throws(TypeError, function() {
- TypedArray.of.call(ctor, 1, 2);
+ TypedArray.of.call(ctor, 1n, 2n);
});
});