Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/node_url_pattern.cc
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ bool URLPatternRegexProvider::regex_match(std::string_view input,
}
Local<Value> 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();
}

Expand All @@ -131,7 +131,7 @@ URLPatternRegexProvider::regex_search(std::string_view input,
}
Local<Value> 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;
Expand Down
Loading