• Home
  • Raw
  • Download

Lines Matching full:process

22   // Patch the process object with legacy properties and normalizations
29 // overwrite process.env so that the original path gets passed
31 if (process.env.NODE_V8_COVERAGE) {
32 process.env.NODE_V8_COVERAGE =
33 setupCoverageHooks(process.env.NODE_V8_COVERAGE);
42 // Process initial diagnostic reporting configuration, if present.
48 // If the process is spawned with env NODE_CHANNEL_FD, it's probably
51 // process.send(), process.channel, process.connected,
52 // process.disconnect().
81 patchProcessObjectNative(process);
83 ObjectDefineProperty(process, 'argv0', {
86 value: process.argv[0]
88 process.argv[0] = process.execPath;
90 if (expandArgv1 && process.argv[1] &&
91 !StringPrototypeStartsWith(process.argv[1], '-')) {
92 // Expand process.argv[1] into a full path.
95 process.argv[1] = path.resolve(process.argv[1]);
110 addReadOnlyProcessAlias('profProcess', '--prof-process');
119 ObjectDefineProperty(process, name, {
131 } = require('internal/process/warning');
133 process.env.NODE_NO_WARNINGS !== '1') {
134 process.on('warning', onWarning);
141 const cwd = require('internal/process/execution').tryGetCwd();
147 if (process.features.inspector) {
151 process.emitWarning('The inspector is disabled, ' +
170 const { report } = require('internal/process/report');
171 ObjectDefineProperty(process, 'report', {
181 require('internal/util/debuglog').initializeDebugEnv(process.env.NODE_DEBUG);
189 const { addSignalHandler } = require('internal/process/report');
203 process.on(signal, () => {
210 const { toggleTraceCategoryState } = require('internal/process/per_thread');
219 // bootstrap, and process the notification later here.
236 // DEP0103: access to `process.binding('util').isX` type checkers
267 // TODO(joyeecheung): this is a legacy property exposed to process.
269 // it from the process. We may consider exposing it properly in
270 // process.features.
273 ObjectDefineProperty(process, '_noBrowserGlobals', {
282 process.binding = deprecate(process.binding,
283 'process.binding() is deprecated. ' +
286 process._tickCallback = deprecate(process._tickCallback,
287 'process._tickCallback() is deprecated',
291 // Create global.process and global.Buffer as getters so that we have a
294 let _process = process;
295 ObjectDefineProperty(globalThis, 'process', {
344 if (process.env.NODE_CHANNEL_FD) {
347 const fd = NumberParseInt(process.env.NODE_CHANNEL_FD, 10);
351 delete process.env.NODE_CHANNEL_FD;
354 process.env.NODE_CHANNEL_SERIALIZATION_MODE || 'json';
355 delete process.env.NODE_CHANNEL_SERIALIZATION_MODE;
358 assert(process.send);
363 if (process.argv[1] && process.env.NODE_UNIQUE_ID) {
367 delete process.env.NODE_UNIQUE_ID;
374 process.emitWarning('Policies are experimental.',
383 const cwdURL = pathToFileURL(process.cwd());
415 require('internal/process/policy')
445 const esm = require('internal/process/esm_loader');
455 process.setSourceMapsEnabled = setSourceMapsEnabled;
460 process.emitWarning('The --frozen-intrinsics flag is experimental',