From f7ad4a38c5ecb160a559c03ffa81f432c9aeb59f Mon Sep 17 00:00:00 2001 From: Florian Schwalm Date: Wed, 20 Dec 2023 11:58:27 +0100 Subject: [PATCH] fix: Update parseJson() for v8 11.7.72 and newer Fixes #2355 Root cause: https://chromium-review.googlesource.com/c/v8/v8/+/4652014 --- lib/runtime/parseJson.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/runtime/parseJson.ts b/lib/runtime/parseJson.ts index 92579afeb..c26b2793b 100644 --- a/lib/runtime/parseJson.ts +++ b/lib/runtime/parseJson.ts @@ -1,4 +1,4 @@ -const rxParseJson = /position\s(\d+)$/ +const rxParseJson = /position\s(\d+)(?: \(line \d+ column \d+\))?$/ export function parseJson(s: string, pos: number): unknown { let endPos: number | undefined