Lines Matching defs:function

73   'function',
120 // at function (file)
139 if (typeof globalThis.Error?.prepareStackTrace === 'function') {
145 if (typeof MainContextError.prepareStackTrace === 'function') {
182 function lazyInternalUtil() {
188 function lazyInternalUtilInspect() {
194 function lazyUtilColors() {
200 function lazyBuffer() {
205 function isErrorStackTraceLimitWritable() {
222 function inspectWithNoCustomRetry(obj, options) {
364 function makeSystemErrorWithCode(key) {
372 function makeNodeErrorWithCode(Base, key) {
373 return function NodeError(...args) {
412 * This function removes unnecessary frames from Node.js core errors.
417 function hideStackFrames(fn) {
425 // Utility function for registering the error codes. Only used here. Exported
427 function E(sym, val, def, ...otherClasses) {
445 function getMessage(key, args, self) {
450 if (typeof msg === 'function') {
476 function lazyUv() {
483 function uvErrmapGet(name) {
490 function captureLargerStackTrace(err) {
505 * function UVException using a context object with data assembled in C++.
511 const uvException = hideStackFrames(function uvException(ctx) {
527 // the stack frames due to the `captureStackTrace()` function that is called
557 * This function should replace the deprecated
558 * `exceptionWithHostPort()` function.
566 function uvExceptionWithHostPort(err, syscall, address, port) {
578 // lose the stack frames due to the `captureStackTrace()` function that
604 function errnoException(err, syscall, original) {
627 * Deprecated, new function is `uvExceptionWithHostPort()`
628 * New function added the error description directly
638 function exceptionWithHostPort(err, syscall, address, port, additional) {
656 // lose the stack frames due to the `captureStackTrace()` function that
680 const dnsException = hideStackFrames(function(code, syscall, hostname) {
701 // the stack frames due to the `captureStackTrace()` function that is called
718 function connResetException(msg) {
734 function isStackOverflowError(err) {
737 function overflowStack() { overflowStack(); }
749 // Only use this for integers! Decimal numbers do not work with this function.
750 function addNumericalSeparator(val) {
767 if (typeof error[kEnhanceStackBeforeInspector] !== 'function') {
823 function setArrowMessage(err, arrowMessage) {
828 function hideInternalStackFrames(error) {
863 const genericNodeError = hideStackFrames(function genericNodeError(message, errorProperties) {
875 function determineSpecificType(value) {
879 if (typeof value === 'function' && value.name) {
880 return `function ${value.name}`;
903 function formatList(array, type = 'and') {
943 // To declare an error message, use the E(sym, val, def) function above. The sym
944 // must be an upper case string. The val can be either a function or a string.
946 // The return value of the function must be a string.
966 E('ERR_ASYNC_CALLBACK', '%s must be a function', TypeError);
1035 'Deserialize main function is already configured.', Error);
1036 E('ERR_ENCODING_INVALID_ENCODED_DATA', function(encoding, ret) {
1044 E('ERR_FALSY_VALUE_REJECTION', function(reason) {
1103 function(name, actual, min = undefined, max = undefined) {
1144 E('ERR_HTTP2_STREAM_CANCEL', function(error) {
1213 E('ERR_INVALID_ADDRESS_FAMILY', function(addressType, host, port) {
1357 ` "${name}" function but got ${value}.`;
1367 ` "${name}" function but got ${type}.`;
1373 ` function but got ${type}.`;
1383 E('ERR_INVALID_URL', function(input) {
1461 E('ERR_MODULE_NOT_FOUND', function(path, base, exactUrl) {
1469 E('ERR_NAPI_CONS_FUNCTION', 'Constructor must be a function', TypeError);
1533 function(filename, hasEsmSyntax, parentPath = null, packageJsonPath = null) {
1604 E('ERR_TAP_LEXER_ERROR', function(errorMsg) {
1608 E('ERR_TAP_PARSER_ERROR', function(errorMsg, details, tokenCausedError, source) {
1615 E('ERR_TAP_VALIDATION_ERROR', function(errorMsg) {
1619 E('ERR_TEST_FAILURE', function(error, failureType) {
1646 E('ERR_TLS_CERT_ALTNAME_INVALID', function(reason, host, cert) {
1676 E('ERR_UNAVAILABLE_DURING_EXIT', 'Cannot call function in process exit ' +
1698 E('ERR_UNSUPPORTED_DIR_IMPORT', function(path, base, exactUrl) {
1727 E('ERR_VM_MODULE_LINK_FAILURE', function(message, cause) {