From 821f42dd8e3ed36dcc5e6ca45db8aebc87939585 Mon Sep 17 00:00:00 2001 From: pfg Date: Mon, 3 Mar 2025 21:38:05 -0800 Subject: [PATCH] upgrade webkit (#17889) --- cmake/tools/SetupWebKit.cmake | 2 +- test/regression/issue/17766.test.ts | 31 +++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 test/regression/issue/17766.test.ts diff --git a/cmake/tools/SetupWebKit.cmake b/cmake/tools/SetupWebKit.cmake index 1037f17f28..45d5b4b8a7 100644 --- a/cmake/tools/SetupWebKit.cmake +++ b/cmake/tools/SetupWebKit.cmake @@ -2,7 +2,7 @@ option(WEBKIT_VERSION "The version of WebKit to use") option(WEBKIT_LOCAL "If a local version of WebKit should be used instead of downloading") if(NOT WEBKIT_VERSION) - set(WEBKIT_VERSION f14adff4c39ba08174b84a942f9584028fc9a7ae) + set(WEBKIT_VERSION de0b8bec75574eae9b71c979525c6a8fcee1986f) endif() string(SUBSTRING ${WEBKIT_VERSION} 0 16 WEBKIT_VERSION_PREFIX) diff --git a/test/regression/issue/17766.test.ts b/test/regression/issue/17766.test.ts new file mode 100644 index 0000000000..e02a39998b --- /dev/null +++ b/test/regression/issue/17766.test.ts @@ -0,0 +1,31 @@ +test("17766 minimal", () => { + expect(/^(?:H|Hangul)$/.test("Hangul")).toBe(true); +}); +test("17766 acorn", () => { + expect(require("acorn").parse("/\\p{Script=Hangul}/u", { ecmaVersion: 2025 })).toMatchInlineSnapshot(` + Node { + "body": [ + Node { + "end": 20, + "expression": Node { + "end": 20, + "raw": "/\\p{Script=Hangul}/u", + "regex": { + "flags": "u", + "pattern": "\\p{Script=Hangul}", + }, + "start": 0, + "type": "Literal", + "value": /\\p{Script=Hangul}/u, + }, + "start": 0, + "type": "ExpressionStatement", + }, + ], + "end": 20, + "sourceType": "script", + "start": 0, + "type": "Program", + } + `); +});