nstdlib-nightly
Version:
Node.js standard library converted to runtime-agnostic ES modules.
35 lines (25 loc) • 1.64 kB
JavaScript
// Auto generated from Node.js v22.7.0 runtime
export const setPrepareStackTraceCallback = (...args) => globalThis.node_binding_errors_setPrepareStackTraceCallback?.(...args);
export const setGetSourceMapErrorSource = (...args) => globalThis.node_binding_errors_setGetSourceMapErrorSource?.(...args);
export const setSourceMapsEnabled = (...args) => globalThis.node_binding_errors_setSourceMapsEnabled?.(...args);
export const setMaybeCacheGeneratedSourceMap = (...args) => globalThis.node_binding_errors_setMaybeCacheGeneratedSourceMap?.(...args);
export const setEnhanceStackForFatalException = (...args) => globalThis.node_binding_errors_setEnhanceStackForFatalException?.(...args);
export const noSideEffectsToString = (...args) => globalThis.node_binding_errors_noSideEffectsToString?.(...args);
export const triggerUncaughtException = (...args) => globalThis.node_binding_errors_triggerUncaughtException?.(...args);
export const exitCodes = {
"kNoFailure": 0,
"kGenericUserError": 1,
"kInternalJSParseError": 3,
"kInternalJSEvaluationFailure": 4,
"kV8FatalError": 5,
"kInvalidFatalExceptionMonkeyPatching": 6,
"kExceptionInFatalExceptionHandler": 7,
"kInvalidCommandLineArgument": 9,
"kBootstrapFailure": 10,
"kInvalidCommandLineArgument2": 12,
"kUnsettledTopLevelAwait": 13,
"kStartupSnapshotFailure": 14,
"kAbort": 134
};
const __default_export__ = { setPrepareStackTraceCallback, setGetSourceMapErrorSource, setSourceMapsEnabled, setMaybeCacheGeneratedSourceMap, setEnhanceStackForFatalException, noSideEffectsToString, triggerUncaughtException, exitCodes };
export default __default_export__;