diff options
Diffstat (limited to 'test/built-ins/TypedArray/prototype/map/BigInt/callbackfn-set-value-during-interaction.js')
-rw-r--r-- | test/built-ins/TypedArray/prototype/map/BigInt/callbackfn-set-value-during-interaction.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/built-ins/TypedArray/prototype/map/BigInt/callbackfn-set-value-during-interaction.js b/test/built-ins/TypedArray/prototype/map/BigInt/callbackfn-set-value-during-interaction.js index 2e0f7eed1..9e140cd82 100644 --- a/test/built-ins/TypedArray/prototype/map/BigInt/callbackfn-set-value-during-interaction.js +++ b/test/built-ins/TypedArray/prototype/map/BigInt/callbackfn-set-value-during-interaction.js @@ -12,7 +12,7 @@ features: [BigInt, Reflect.set, TypedArray] ---*/ testWithBigIntTypedArrayConstructors(function(TA) { - var sample = new TA(convertToBigInt([42, 43, 44])); + var sample = new TA([42n, 43n, 44n]); var newVal = 0; sample.map(function(val, i) { @@ -22,7 +22,7 @@ testWithBigIntTypedArrayConstructors(function(TA) { "get the changed value during the loop" ); assert.sameValue( - Reflect.set(sample, 0, convertToBigInt(7)), + Reflect.set(sample, 0, 7n), true, "re-set a value for sample[0]" ); @@ -34,10 +34,10 @@ testWithBigIntTypedArrayConstructors(function(TA) { ); newVal++; - return convertToBigInt(0); + return 0n; }); - assert.sameValue(sample[0], convertToBigInt(7), "changed values after iteration [0] == 7"); - assert.sameValue(sample[1], convertToBigInt(1), "changed values after iteration [1] == 1"); - assert.sameValue(sample[2], convertToBigInt(2), "changed values after iteration [2] == 2"); + assert.sameValue(sample[0], 7n, "changed values after iteration [0] == 7"); + assert.sameValue(sample[1], 1n, "changed values after iteration [1] == 1"); + assert.sameValue(sample[2], 2n, "changed values after iteration [2] == 2"); }); |