summaryrefslogtreecommitdiff
path: root/ext/url/01_urlpattern.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/url/01_urlpattern.js')
-rw-r--r--ext/url/01_urlpattern.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/url/01_urlpattern.js b/ext/url/01_urlpattern.js
index c70b0d4b4..1ed02f8d3 100644
--- a/ext/url/01_urlpattern.js
+++ b/ext/url/01_urlpattern.js
@@ -55,7 +55,7 @@ class URLPattern {
constructor(input, baseURL = undefined) {
this[webidl.brand] = webidl.brand;
const prefix = "Failed to construct 'URLPattern'";
- webidl.requiredArguments(arguments.length, 1, { prefix });
+ webidl.requiredArguments(arguments.length, 1, prefix);
input = webidl.converters.URLPatternInput(input, {
prefix,
context: "Argument 1",
@@ -133,7 +133,7 @@ class URLPattern {
test(input, baseURL = undefined) {
webidl.assertBranded(this, URLPatternPrototype);
const prefix = "Failed to execute 'test' on 'URLPattern'";
- webidl.requiredArguments(arguments.length, 1, { prefix });
+ webidl.requiredArguments(arguments.length, 1, prefix);
input = webidl.converters.URLPatternInput(input, {
prefix,
context: "Argument 1",
@@ -174,7 +174,7 @@ class URLPattern {
exec(input, baseURL = undefined) {
webidl.assertBranded(this, URLPatternPrototype);
const prefix = "Failed to execute 'exec' on 'URLPattern'";
- webidl.requiredArguments(arguments.length, 1, { prefix });
+ webidl.requiredArguments(arguments.length, 1, prefix);
input = webidl.converters.URLPatternInput(input, {
prefix,
context: "Argument 1",