summaryrefslogtreecommitdiff
path: root/ext/url/01_urlpattern.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-04-12 21:58:57 +0200
committerGitHub <noreply@github.com>2023-04-12 19:58:57 +0000
commita3c5193a2e7d15bbfac390b220982561376e7322 (patch)
tree272620bdfec253f53ad9ddd787afa0139770e069 /ext/url/01_urlpattern.js
parent9c255b2843b3446c7ac6592eb8e318972eb5f1f8 (diff)
refactor(ext/webidl): remove object from 'requiredArguments' (#18674)
This should produce a little less garbage and using an object here wasn't really required. --------- Co-authored-by: Aapo Alasuutari <aapo.alasuutari@gmail.com> Co-authored-by: Leo Kettmeir <crowlkats@toaxl.com>
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",