summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArray/prototype/values/BigInt/return-itor.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/TypedArray/prototype/values/BigInt/return-itor.js')
-rw-r--r--test/built-ins/TypedArray/prototype/values/BigInt/return-itor.js4
1 files changed, 1 insertions, 3 deletions
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 dc2904754..3924cb3b4 100644
--- a/test/built-ins/TypedArray/prototype/values/BigInt/return-itor.js
+++ b/test/built-ins/TypedArray/prototype/values/BigInt/return-itor.js
@@ -13,10 +13,8 @@ includes: [testBigIntTypedArray.js]
features: [BigInt, TypedArray]
---*/
-var sample = [0, 42, 64];
-
testWithBigIntTypedArrayConstructors(function(TA) {
- var typedArray = new TA(convertToBigInt(sample));
+ var typedArray = new TA([0n, 42n, 64n]);
var itor = typedArray.values();
var next = itor.next();