* Throws when a Web IDL operation receives too few arguments. * @param {number} length Actual argument count. * @param {number} required Required argument count. * @param {ConversionOptions} [options] Conversion options. * @returns {void}
(length, required, options = kEmptyObject)
| 610 | * @returns {void} |
| 611 | */ |
| 612 | function requiredArguments(length, required, options = kEmptyObject) { |
| 613 | if (length < required) { |
| 614 | throw makeException( |
| 615 | `${required} argument${ |
| 616 | required === 1 ? '' : 's' |
| 617 | } required, but only ${length} present.`, |
| 618 | makeOptions(options, '', 'ERR_MISSING_ARGS')); |
| 619 | } |
| 620 | } |
| 621 | |
| 622 | /** |
| 623 | * Creates a converter for a Web IDL enum type. |
nothing calls this directly
no test coverage detected
searching dependent graphs…