mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
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>
This commit is contained in:
parent
9c255b2843
commit
a3c5193a2e
24 changed files with 114 additions and 114 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue