mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +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
|
@ -219,7 +219,7 @@ class PerformanceMark extends PerformanceEntry {
|
|||
options = {},
|
||||
) {
|
||||
const prefix = "Failed to construct 'PerformanceMark'";
|
||||
webidl.requiredArguments(arguments.length, 1, { prefix });
|
||||
webidl.requiredArguments(arguments.length, 1, prefix);
|
||||
|
||||
name = webidl.converters.DOMString(name, {
|
||||
prefix,
|
||||
|
@ -394,7 +394,7 @@ class Performance extends EventTarget {
|
|||
) {
|
||||
webidl.assertBranded(this, PerformancePrototype);
|
||||
const prefix = "Failed to execute 'getEntriesByName' on 'Performance'";
|
||||
webidl.requiredArguments(arguments.length, 1, { prefix });
|
||||
webidl.requiredArguments(arguments.length, 1, prefix);
|
||||
|
||||
name = webidl.converters.DOMString(name, {
|
||||
prefix,
|
||||
|
@ -414,7 +414,7 @@ class Performance extends EventTarget {
|
|||
getEntriesByType(type) {
|
||||
webidl.assertBranded(this, PerformancePrototype);
|
||||
const prefix = "Failed to execute 'getEntriesByName' on 'Performance'";
|
||||
webidl.requiredArguments(arguments.length, 1, { prefix });
|
||||
webidl.requiredArguments(arguments.length, 1, prefix);
|
||||
|
||||
type = webidl.converters.DOMString(type, {
|
||||
prefix,
|
||||
|
@ -430,7 +430,7 @@ class Performance extends EventTarget {
|
|||
) {
|
||||
webidl.assertBranded(this, PerformancePrototype);
|
||||
const prefix = "Failed to execute 'mark' on 'Performance'";
|
||||
webidl.requiredArguments(arguments.length, 1, { prefix });
|
||||
webidl.requiredArguments(arguments.length, 1, prefix);
|
||||
|
||||
markName = webidl.converters.DOMString(markName, {
|
||||
prefix,
|
||||
|
@ -458,7 +458,7 @@ class Performance extends EventTarget {
|
|||
) {
|
||||
webidl.assertBranded(this, PerformancePrototype);
|
||||
const prefix = "Failed to execute 'measure' on 'Performance'";
|
||||
webidl.requiredArguments(arguments.length, 1, { prefix });
|
||||
webidl.requiredArguments(arguments.length, 1, prefix);
|
||||
|
||||
measureName = webidl.converters.DOMString(measureName, {
|
||||
prefix,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue