From 80d3a5f8be667c793d359ab7e67c5ede66b37f48 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 8 Nov 2021 14:24:54 +0100 Subject: 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. --- cli/tests/unit/esnext_test.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cli/tests') 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() { -- cgit v1.2.3