We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59f00d7 commit 5ecc9dbCopy full SHA for 5ecc9db
src/node_url_pattern.cc
@@ -269,7 +269,7 @@ void URLPattern::New(const FunctionCallbackInfo<Value>& args) {
269
options.has_value() ? &options.value() : nullptr);
270
271
if (!url_pattern) {
272
- THROW_ERR_INVALID_URL_PATTERN(env, "Failed to constuct URLPattern");
+ THROW_ERR_INVALID_URL_PATTERN(env, "Failed to construct URLPattern");
273
return;
274
}
275
test/parallel/test-urlpattern.js
@@ -26,3 +26,7 @@ throws(() => {
26
}, {
27
message: 'boom'
28
});
29
+
30
+throws(() => {
31
+ new URLPattern('invalid value');
32
+}, /TypeError: Failed to construct URLPattern/);
0 commit comments