diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-04-12 21:58:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-12 19:58:57 +0000 |
commit | a3c5193a2e7d15bbfac390b220982561376e7322 (patch) | |
tree | 272620bdfec253f53ad9ddd787afa0139770e069 /ext/fetch/26_fetch.js | |
parent | 9c255b2843b3446c7ac6592eb8e318972eb5f1f8 (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/26_fetch.js')
-rw-r--r-- | ext/fetch/26_fetch.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fetch/26_fetch.js b/ext/fetch/26_fetch.js index 4678defa0..18cb47a59 100644 --- a/ext/fetch/26_fetch.js +++ b/ext/fetch/26_fetch.js @@ -413,7 +413,7 @@ function fetch(input, init = {}) { // 1. const result = new Promise((resolve, reject) => { const prefix = "Failed to call 'fetch'"; - webidl.requiredArguments(arguments.length, 1, { prefix }); + webidl.requiredArguments(arguments.length, 1, prefix); // 2. const requestObject = new Request(input, init); // 3. |