summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2021-11-08 14:24:54 +0100
committerGitHub <noreply@github.com>2021-11-08 14:24:54 +0100
commit80d3a5f8be667c793d359ab7e67c5ede66b37f48 (patch)
tree41d0797fb99aa114b10e89ac13945d7b26dcf407 /cli/tests
parentc91da1222b1a57a38aad4bca7af7fe88d8ef2476 (diff)
feat: update to V8 9.7 (#12685)
This commit updates the rusty_v8 to 0.34.0. This commit also adds the required typings for the new Array#findLast and Array#findIndexLast methods.
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/unit/esnext_test.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/tests/unit/esnext_test.ts b/cli/tests/unit/esnext_test.ts
index 5d858e267..025a28003 100644
--- a/cli/tests/unit/esnext_test.ts
+++ b/cli/tests/unit/esnext_test.ts
@@ -9,6 +9,8 @@ unitTest(function typeCheckingEsNextArrayString() {
assertEquals(a.at(-1), "f");
const b = ["a", "b", "c", "d", "e", "f"];
assertEquals(b.at(-1), "f");
+ assertEquals(b.findLast((val) => typeof val === "string"), "f");
+ assertEquals(b.findLastIndex((val) => typeof val === "string"), 5);
});
unitTest(function objectHasOwn() {