Lines Matching refs:args
373 return function NodeError(...args) {
379 const message = getMessage(key, args, error);
413 * @template {(...args: unknown[]) => unknown} T
445 function getMessage(key, args, self) {
452 msg.length <= args.length, // Default options do not count.
453 `Code: ${key}; The provided arguments length (${args.length}) does not ` +
456 return ReflectApply(msg, self, args);
463 expectedLength === args.length,
464 `Code: ${key}; The provided arguments length (${args.length}) does not ` +
467 if (args.length === 0)
470 ArrayPrototypeUnshift(args, msg);
471 return ReflectApply(lazyInternalUtilInspect().format, null, args);
1446 (...args) => {
1447 assert(args.length > 0, 'At least one arg needs to be specified');
1449 const len = args.length;
1451 args = ArrayPrototypeMap(
1452 args,
1457 msg += `${formatList(args)} argument${len > 1 ? 's' : ''}`;