diff options
Diffstat (limited to 'test/built-ins/TypedArray/prototype/indexOf/BigInt/fromIndex-minus-zero.js')
-rw-r--r-- | test/built-ins/TypedArray/prototype/indexOf/BigInt/fromIndex-minus-zero.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/built-ins/TypedArray/prototype/indexOf/BigInt/fromIndex-minus-zero.js b/test/built-ins/TypedArray/prototype/indexOf/BigInt/fromIndex-minus-zero.js index bd141027d..90dc45150 100644 --- a/test/built-ins/TypedArray/prototype/indexOf/BigInt/fromIndex-minus-zero.js +++ b/test/built-ins/TypedArray/prototype/indexOf/BigInt/fromIndex-minus-zero.js @@ -24,7 +24,7 @@ features: [BigInt, TypedArray] testWithBigIntTypedArrayConstructors(function(TA) { var sample; - sample = new TA(convertToBigInt([42, 43])); - assert.sameValue(sample.indexOf(convertToBigInt(42), -0), 0, "-0 [0]"); - assert.sameValue(sample.indexOf(convertToBigInt(43), -0), 1, "-0 [1]"); + sample = new TA([42n, 43n]); + assert.sameValue(sample.indexOf(42n, -0), 0, "-0 [0]"); + assert.sameValue(sample.indexOf(43n, -0), 1, "-0 [1]"); }); |