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
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue