summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/fromIndex-infinity.js
diff options
context:
space:
mode:
authorLeo Balter <leonardo.balter@gmail.com>2018-02-15 13:57:39 -0500
committerLeo Balter <leonardo.balter@gmail.com>2018-02-15 16:45:10 -0500
commit3325e2a516a38936686fb0163b8f8a5292f8256e (patch)
treeede08c1460468c9a44647a5b0aa3261089bb65c4 /test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/fromIndex-infinity.js
parent296657cd90023e89218016870bd972267b4cd33a (diff)
downloadqtdeclarative-testsuites-3325e2a516a38936686fb0163b8f8a5292f8256e.tar.gz
Minimize use of convertToBigInt
Diffstat (limited to 'test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/fromIndex-infinity.js')
-rw-r--r--test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/fromIndex-infinity.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/fromIndex-infinity.js b/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/fromIndex-infinity.js
index d7c28b130..1c0488a76 100644
--- a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/fromIndex-infinity.js
+++ b/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/fromIndex-infinity.js
@@ -25,8 +25,8 @@ features: [BigInt, TypedArray]
---*/
testWithBigIntTypedArrayConstructors(function(TA) {
- var sample = new TA(convertToBigInt([42, 43, 43, 41]));
+ var sample = new TA([42n, 43n, 43n, 41n]);
- assert.sameValue(sample.lastIndexOf(convertToBigInt(43), Infinity), 2, "lastIndexOf(43, Infinity)");
- assert.sameValue(sample.lastIndexOf(convertToBigInt(43), -Infinity), -1, "lastIndexOf(43, -Infinity)");
+ assert.sameValue(sample.lastIndexOf(43n, Infinity), 2, "lastIndexOf(43, Infinity)");
+ assert.sameValue(sample.lastIndexOf(43n, -Infinity), -1, "lastIndexOf(43, -Infinity)");
});