From ce8cef648236accf31fc3365ee1d68fce8e2f5c0 Mon Sep 17 00:00:00 2001 From: Clemens Backes Date: Tue, 17 Nov 2026 13:06:19 +0000 Subject: [PATCH] [v8] Switch v8::RegExp::ExecV2 callers back to Exec V8 renamed RegExp::ExecV2 back to RegExp::Exec (returning MaybeLocal) and marked ExecV2 as V8_DEPRECATE_SOON in https://crrev.com/c/8794471. Switch src/node_url_pattern.cc back to RegExp::Exec. Refs: https://crrev.com/c/8794471 --- src/node_url_pattern.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/node_url_pattern.cc b/src/node_url_pattern.cc index 6b488d9512c3..ae2d2cba44ec 100644 --- a/src/node_url_pattern.cc +++ b/src/node_url_pattern.cc @@ -110,11 +110,11 @@ bool URLPatternRegexProvider::regex_match(std::string_view input, } Local result_object; if (!pattern.Get(isolate) - ->ExecV2(env->context(), local_input) + ->Exec(env->context(), local_input) .ToLocal(&result_object)) { return false; } - // RegExp::ExecV2 returns null if there is no match. + // RegExp::Exec returns null if there is no match. return !result_object->IsNull(); } @@ -131,7 +131,7 @@ URLPatternRegexProvider::regex_search(std::string_view input, } Local exec_result_object; auto pattern = global_pattern.Get(isolate); - if (!pattern->ExecV2(env->context(), local_input) + if (!pattern->Exec(env->context(), local_input) .ToLocal(&exec_result_object) || exec_result_object->IsNull()) { return std::nullopt;