summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArray/prototype/values
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/TypedArray/prototype/values')
-rw-r--r--test/built-ins/TypedArray/prototype/values/BigInt/iter-prototype.js2
-rw-r--r--test/built-ins/TypedArray/prototype/values/BigInt/return-itor.js6
2 files changed, 4 insertions, 4 deletions
diff --git a/test/built-ins/TypedArray/prototype/values/BigInt/iter-prototype.js b/test/built-ins/TypedArray/prototype/values/BigInt/iter-prototype.js
index 72b1bd610..607aa0256 100644
--- a/test/built-ins/TypedArray/prototype/values/BigInt/iter-prototype.js
+++ b/test/built-ins/TypedArray/prototype/values/BigInt/iter-prototype.js
@@ -18,7 +18,7 @@ features: [BigInt, Symbol.iterator, TypedArray]
var ArrayIteratorProto = Object.getPrototypeOf([][Symbol.iterator]());
testWithBigIntTypedArrayConstructors(function(TA) {
- var sample = new TA(convertToBigInt([0, 42, 64]));
+ var sample = new TA([0n, 42n, 64n]);
var iter = sample.values();
assert.sameValue(Object.getPrototypeOf(iter), ArrayIteratorProto);
diff --git a/test/built-ins/TypedArray/prototype/values/BigInt/return-itor.js b/test/built-ins/TypedArray/prototype/values/BigInt/return-itor.js
index 576a97a0e..dc2904754 100644
--- a/test/built-ins/TypedArray/prototype/values/BigInt/return-itor.js
+++ b/test/built-ins/TypedArray/prototype/values/BigInt/return-itor.js
@@ -20,15 +20,15 @@ testWithBigIntTypedArrayConstructors(function(TA) {
var itor = typedArray.values();
var next = itor.next();
- assert.sameValue(next.value, convertToBigInt(0));
+ assert.sameValue(next.value, 0n);
assert.sameValue(next.done, false);
next = itor.next();
- assert.sameValue(next.value, convertToBigInt(42));
+ assert.sameValue(next.value, 42n);
assert.sameValue(next.done, false);
next = itor.next();
- assert.sameValue(next.value, convertToBigInt(64));
+ assert.sameValue(next.value, 64n);
assert.sameValue(next.done, false);
next = itor.next();