diff options
Diffstat (limited to 'test/built-ins/TypedArray/prototype/forEach')
-rw-r--r-- | test/built-ins/TypedArray/prototype/forEach/BigInt/callbackfn-set-value-during-interaction.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/built-ins/TypedArray/prototype/forEach/BigInt/callbackfn-set-value-during-interaction.js b/test/built-ins/TypedArray/prototype/forEach/BigInt/callbackfn-set-value-during-interaction.js index 9d7acf91b..13bd7fb01 100644 --- a/test/built-ins/TypedArray/prototype/forEach/BigInt/callbackfn-set-value-during-interaction.js +++ b/test/built-ins/TypedArray/prototype/forEach/BigInt/callbackfn-set-value-during-interaction.js @@ -18,12 +18,12 @@ features: [BigInt, Reflect.set, TypedArray] testWithBigIntTypedArrayConstructors(function(TA) { var sample = new TA([42n, 43n, 44n]); - var newVal = 0; + var newVal = 0n; sample.forEach(function(val, i) { if (i > 0) { assert.sameValue( - sample[i - 1], convertToBigInt(newVal - 1), + sample[i - 1], newVal - 1n, "get the changed value during the loop" ); assert.sameValue( @@ -33,7 +33,7 @@ testWithBigIntTypedArrayConstructors(function(TA) { ); } assert.sameValue( - Reflect.set(sample, i, convertToBigInt(newVal)), + Reflect.set(sample, i, newVal), true, "set value during iteration" ); |