Skip to content

Commit a40ff1f

Browse files
jakecastelliaduh95
authored andcommitted
url: fix constructor error message for URLPattern
PR-URL: #57482 Reviewed-By: Kohei Ueno <kohei.ueno119@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com> Reviewed-By: Xuguang Mei <meixuguang@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: Jason Zhang <xzha4350@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
1 parent db9c37f commit a40ff1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_url_pattern.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ void URLPattern::New(const FunctionCallbackInfo<Value>& args) {
269269
options.has_value() ? &options.value() : nullptr);
270270

271271
if (!url_pattern) {
272-
THROW_ERR_INVALID_URL_PATTERN(env, "Failed to constuct URLPattern");
272+
THROW_ERR_INVALID_URL_PATTERN(env, "Failed to construct URLPattern");
273273
return;
274274
}
275275

0 commit comments

Comments
 (0)