diff options
Diffstat (limited to 'test/built-ins/TypedArray/prototype/reduce/BigInt/values-are-not-cached.js')
-rw-r--r-- | test/built-ins/TypedArray/prototype/reduce/BigInt/values-are-not-cached.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/built-ins/TypedArray/prototype/reduce/BigInt/values-are-not-cached.js b/test/built-ins/TypedArray/prototype/reduce/BigInt/values-are-not-cached.js index 7b602dd9d..5362bf1dd 100644 --- a/test/built-ins/TypedArray/prototype/reduce/BigInt/values-are-not-cached.js +++ b/test/built-ins/TypedArray/prototype/reduce/BigInt/values-are-not-cached.js @@ -27,15 +27,15 @@ features: [BigInt, TypedArray] ---*/ testWithBigIntTypedArrayConstructors(function(TA) { - var sample = new TA(convertToBigInt([42, 43, 44])); + var sample = new TA([42n, 43n, 44n]); sample.reduce(function(a, v, i) { if (i < sample.length - 1) { - sample[i+1] = convertToBigInt(42); + sample[i+1] = 42n; } assert.sameValue( - v, convertToBigInt(42), "method does not cache values before callbackfn calls" + v, 42n, "method does not cache values before callbackfn calls" ); }, 0); }); |