|
240 | 240 | // To allow people to extend Node in different ways, this hook allows
|
241 | 241 | // one to drop a file lib/_third_party_main.js into the build
|
242 | 242 | // directory which will be executed instead of Node's normal loading.
|
243 |
| - process.nextTick(function() { |
| 243 | + process.nextTick(() => { |
244 | 244 | NativeModule.require('_third_party_main');
|
245 | 245 | });
|
246 | 246 | } else if (process.argv[1] === 'inspect' || process.argv[1] === 'debug') {
|
|
251 | 251 | }
|
252 | 252 |
|
253 | 253 | // Start the debugger agent.
|
254 |
| - process.nextTick(function() { |
| 254 | + process.nextTick(() => { |
255 | 255 | NativeModule.require('internal/deps/node-inspect/lib/_inspect').start();
|
256 | 256 | });
|
257 | 257 |
|
|
304 | 304 | if (process._forceRepl || NativeModule.require('tty').isatty(0)) {
|
305 | 305 | // REPL
|
306 | 306 | const cliRepl = NativeModule.require('internal/repl');
|
307 |
| - cliRepl.createInternalRepl(process.env, function(err, repl) { |
| 307 | + cliRepl.createInternalRepl(process.env, (err, repl) => { |
308 | 308 | if (err) {
|
309 | 309 | throw err;
|
310 | 310 | }
|
311 |
| - repl.on('exit', function() { |
| 311 | + repl.on('exit', () => { |
312 | 312 | if (repl._flushing) {
|
313 | 313 | repl.pause();
|
314 |
| - return repl.once('flushHistory', function() { |
| 314 | + return repl.once('flushHistory', () => { |
315 | 315 | process.exit();
|
316 | 316 | });
|
317 | 317 | }
|
|
328 | 328 | process.stdin.setEncoding('utf8');
|
329 | 329 |
|
330 | 330 | let code = '';
|
331 |
| - process.stdin.on('data', function(d) { |
| 331 | + process.stdin.on('data', (d) => { |
332 | 332 | code += d;
|
333 | 333 | });
|
334 | 334 |
|
|
567 | 567 | emitAfter
|
568 | 568 | } = NativeModule.require('internal/async_hooks');
|
569 | 569 |
|
570 |
| - process._fatalException = function(er) { |
| 570 | + process._fatalException = (er) => { |
571 | 571 | // It's possible that defaultTriggerAsyncId was set for a constructor
|
572 | 572 | // call that threw and was never cleared. So clear it now.
|
573 | 573 | clearDefaultTriggerAsyncId();
|
|
0 commit comments