diff options
Diffstat (limited to 'test/built-ins/TypedArray/prototype/slice/BigInt/speciesctor-get-species-custom-ctor-returns-another-instance.js')
-rw-r--r-- | test/built-ins/TypedArray/prototype/slice/BigInt/speciesctor-get-species-custom-ctor-returns-another-instance.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/built-ins/TypedArray/prototype/slice/BigInt/speciesctor-get-species-custom-ctor-returns-another-instance.js b/test/built-ins/TypedArray/prototype/slice/BigInt/speciesctor-get-species-custom-ctor-returns-another-instance.js index 81be8cd76..bfd0fff4f 100644 --- a/test/built-ins/TypedArray/prototype/slice/BigInt/speciesctor-get-species-custom-ctor-returns-another-instance.js +++ b/test/built-ins/TypedArray/prototype/slice/BigInt/speciesctor-get-species-custom-ctor-returns-another-instance.js @@ -38,7 +38,7 @@ features: [BigInt, Symbol.species, TypedArray] testWithBigIntTypedArrayConstructors(function(TA) { var sample = new TA([40n]); - var other = new Int8Array([1, 0, 1]); + var other = new BigInt64Array([1n, 0n, 1n]); var result; sample.constructor = {}; @@ -49,5 +49,5 @@ testWithBigIntTypedArrayConstructors(function(TA) { result = sample.slice(0, 0); assert.sameValue(result, other, "returned another typedarray"); - assert(compareArray(result, [1, 0, 1]), "the returned object is preserved"); + assert(compareArray(result, [1n, 0n, 1n]), "the returned object is preserved"); }); |