MCPcopy Index your code
hub / github.com/nodejs/node / getExpectedArgumentLength

Function getExpectedArgumentLength

lib/internal/errors.js:588–593  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

586}
587
588function getExpectedArgumentLength(msg) {
589 let expectedLength = 0;
590 const regex = /%[dfijoOs]/g;
591 while (RegExpPrototypeExec(regex, msg) !== null) expectedLength++;
592 return expectedLength;
593}
594
595function getMessage(key, args, self) {
596 const msg = messages.get(key);

Callers 2

makeNodeErrorWithCodeFunction · 0.85
getMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…