Lines Matching defs:const
3 const {
9 const path = require('path');
11 const {
19 const {
28 const {
33 const { shouldAbortOnUncaughtToggle } = internalBinding('util');
50 const { loadESM } = require('internal/process/esm_loader');
51 const { handleMainPromise } = require('internal/modules/run_main');
57 const CJSModule = require('internal/modules/cjs/loader').Module;
58 const { pathToFileURL } = require('internal/url');
60 const cwd = tryGetCwd();
61 const origModule = globalThis.module; // Set e.g. when called from the REPL.
63 const module = new CJSModule(name);
67 const { handleMainPromise } = require('internal/modules/run_main');
68 const asyncESM = require('internal/process/esm_loader');
69 const baseUrl = pathToFileURL(module.filename).href;
70 const { loadESM } = asyncESM;
72 const runScript = () => {
74 const script = `
83 const result = module._compile(script, `${name}-wrapper`)(() => {
84 const hostDefinedOptionId = Symbol(name);
86 const loader = asyncESM.esmLoader;
89 const script = makeContextifyScript(
103 const { log } = require('internal/console/global');
117 const exceptionHandlerState = {
165 const type = fromPromise ? 'unhandledRejection' : 'uncaughtException';
191 const asyncId = executionAsyncId();