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/13_message_port.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/13_message_port.js')
-rw-r--r-- | ext/web/13_message_port.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/web/13_message_port.js b/ext/web/13_message_port.js index 6227bf92b..39820a52f 100644 --- a/ext/web/13_message_port.js +++ b/ext/web/13_message_port.js @@ -100,7 +100,7 @@ class MessagePort extends EventTarget { postMessage(message, transferOrOptions = {}) { webidl.assertBranded(this, MessagePortPrototype); const prefix = "Failed to execute 'postMessage' on 'MessagePort'"; - webidl.requiredArguments(arguments.length, 1, { prefix }); + webidl.requiredArguments(arguments.length, 1, prefix); message = webidl.converters.any(message); let options; if ( @@ -329,7 +329,7 @@ webidl.converters.StructuredSerializeOptions = webidl function structuredClone(value, options) { const prefix = "Failed to execute 'structuredClone'"; - webidl.requiredArguments(arguments.length, 1, { prefix }); + webidl.requiredArguments(arguments.length, 1, prefix); options = webidl.converters.StructuredSerializeOptions(options, { prefix, context: "Argument 2", |