summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArray/prototype/includes/BigInt/fromIndex-infinity.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/TypedArray/prototype/includes/BigInt/fromIndex-infinity.js')
-rw-r--r--test/built-ins/TypedArray/prototype/includes/BigInt/fromIndex-infinity.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/built-ins/TypedArray/prototype/includes/BigInt/fromIndex-infinity.js b/test/built-ins/TypedArray/prototype/includes/BigInt/fromIndex-infinity.js
index 0d44d7a65..56dd73515 100644
--- a/test/built-ins/TypedArray/prototype/includes/BigInt/fromIndex-infinity.js
+++ b/test/built-ins/TypedArray/prototype/includes/BigInt/fromIndex-infinity.js
@@ -30,15 +30,15 @@ features: [BigInt, TypedArray]
---*/
testWithBigIntTypedArrayConstructors(function(TA) {
- var sample = new TA(convertToBigInt([42, 43, 43, 41]));
+ var sample = new TA([42n, 43n, 43n, 41n]);
assert.sameValue(
- sample.includes(convertToBigInt(43), Infinity),
+ sample.includes(43n, Infinity),
false,
"includes(43, Infinity)"
);
assert.sameValue(
- sample.includes(convertToBigInt(43), -Infinity),
+ sample.includes(43n, -Infinity),
true,
"includes(43, -Infinity)");
});