summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArray/prototype/subarray/BigInt/minus-zero.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/TypedArray/prototype/subarray/BigInt/minus-zero.js')
-rw-r--r--test/built-ins/TypedArray/prototype/subarray/BigInt/minus-zero.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/built-ins/TypedArray/prototype/subarray/BigInt/minus-zero.js b/test/built-ins/TypedArray/prototype/subarray/BigInt/minus-zero.js
index a0349c375..b71e445c7 100644
--- a/test/built-ins/TypedArray/prototype/subarray/BigInt/minus-zero.js
+++ b/test/built-ins/TypedArray/prototype/subarray/BigInt/minus-zero.js
@@ -10,14 +10,14 @@ features: [BigInt, TypedArray]
---*/
testWithBigIntTypedArrayConstructors(function(TA) {
- var sample = new TA(convertToBigInt([40, 41, 42, 43]));
+ var sample = new TA([40n, 41n, 42n, 43n]);
assert(
- compareArray(sample.subarray(-0), convertToBigInt([40, 41, 42, 43])),
+ compareArray(sample.subarray(-0), [40n, 41n, 42n, 43n]),
"begin == -0"
);
assert(
- compareArray(sample.subarray(-0, 4), convertToBigInt([40, 41, 42, 43])),
+ compareArray(sample.subarray(-0, 4), [40n, 41n, 42n, 43n]),
"being == -0, end == length"
);
assert(