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/web/09_file.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/web/09_file.js')
-rw-r--r-- | ext/web/09_file.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/web/09_file.js b/ext/web/09_file.js index 1ecebe8a8..cb42c8c72 100644 --- a/ext/web/09_file.js +++ b/ext/web/09_file.js @@ -492,7 +492,7 @@ class File extends Blob { */ constructor(fileBits, fileName, options = {}) { const prefix = "Failed to construct 'File'"; - webidl.requiredArguments(arguments.length, 2, { prefix }); + webidl.requiredArguments(arguments.length, 2, prefix); fileBits = webidl.converters["sequence<BlobPart>"](fileBits, { context: "Argument 1", |