summaryrefslogtreecommitdiff
path: root/ext/fetch/21_formdata.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/fetch/21_formdata.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/fetch/21_formdata.js')
-rw-r--r--ext/fetch/21_formdata.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/fetch/21_formdata.js b/ext/fetch/21_formdata.js
index 3114ffad3..92c914b8c 100644
--- a/ext/fetch/21_formdata.js
+++ b/ext/fetch/21_formdata.js
@@ -101,7 +101,7 @@ class FormData {
append(name, valueOrBlobValue, filename) {
webidl.assertBranded(this, FormDataPrototype);
const prefix = "Failed to execute 'append' on 'FormData'";
- webidl.requiredArguments(arguments.length, 2, { prefix });
+ webidl.requiredArguments(arguments.length, 2, prefix);
name = webidl.converters["USVString"](name, {
prefix,
@@ -137,7 +137,7 @@ class FormData {
delete(name) {
webidl.assertBranded(this, FormDataPrototype);
const prefix = "Failed to execute 'name' on 'FormData'";
- webidl.requiredArguments(arguments.length, 1, { prefix });
+ webidl.requiredArguments(arguments.length, 1, prefix);
name = webidl.converters["USVString"](name, {
prefix,
@@ -160,7 +160,7 @@ class FormData {
get(name) {
webidl.assertBranded(this, FormDataPrototype);
const prefix = "Failed to execute 'get' on 'FormData'";
- webidl.requiredArguments(arguments.length, 1, { prefix });
+ webidl.requiredArguments(arguments.length, 1, prefix);
name = webidl.converters["USVString"](name, {
prefix,
@@ -182,7 +182,7 @@ class FormData {
getAll(name) {
webidl.assertBranded(this, FormDataPrototype);
const prefix = "Failed to execute 'getAll' on 'FormData'";
- webidl.requiredArguments(arguments.length, 1, { prefix });
+ webidl.requiredArguments(arguments.length, 1, prefix);
name = webidl.converters["USVString"](name, {
prefix,
@@ -205,7 +205,7 @@ class FormData {
has(name) {
webidl.assertBranded(this, FormDataPrototype);
const prefix = "Failed to execute 'has' on 'FormData'";
- webidl.requiredArguments(arguments.length, 1, { prefix });
+ webidl.requiredArguments(arguments.length, 1, prefix);
name = webidl.converters["USVString"](name, {
prefix,
@@ -229,7 +229,7 @@ class FormData {
set(name, valueOrBlobValue, filename) {
webidl.assertBranded(this, FormDataPrototype);
const prefix = "Failed to execute 'set' on 'FormData'";
- webidl.requiredArguments(arguments.length, 2, { prefix });
+ webidl.requiredArguments(arguments.length, 2, prefix);
name = webidl.converters["USVString"](name, {
prefix,