diff options
Diffstat (limited to 'test/built-ins/TypedArray/prototype/map/BigInt/callbackfn-return-does-not-change-instance.js')
-rw-r--r-- | test/built-ins/TypedArray/prototype/map/BigInt/callbackfn-return-does-not-change-instance.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/built-ins/TypedArray/prototype/map/BigInt/callbackfn-return-does-not-change-instance.js b/test/built-ins/TypedArray/prototype/map/BigInt/callbackfn-return-does-not-change-instance.js index bc0f6f32b..dfd441f3c 100644 --- a/test/built-ins/TypedArray/prototype/map/BigInt/callbackfn-return-does-not-change-instance.js +++ b/test/built-ins/TypedArray/prototype/map/BigInt/callbackfn-return-does-not-change-instance.js @@ -13,13 +13,13 @@ features: [BigInt, TypedArray] testWithBigIntTypedArrayConstructors(function(TA) { var sample1 = new TA(3); - sample1[1] = convertToBigInt(1); + sample1[1] = 1n; sample1.map(function() { - return convertToBigInt(42); + return 42n; }); - assert.sameValue(sample1[0], convertToBigInt(0), "[0] == 0"); - assert.sameValue(sample1[1], convertToBigInt(1), "[1] == 1"); - assert.sameValue(sample1[2], convertToBigInt(0), "[2] == 0"); + assert.sameValue(sample1[0], 0n, "[0] == 0"); + assert.sameValue(sample1[1], 1n, "[1] == 1"); + assert.sameValue(sample1[2], 0n, "[2] == 0"); }); |