| 
223 | 223 |       // To allow people to extend Node in different ways, this hook allows  | 
224 | 224 |       // one to drop a file lib/_third_party_main.js into the build  | 
225 | 225 |       // directory which will be executed instead of Node's normal loading.  | 
226 |  | -      process.nextTick(function() {  | 
 | 226 | +      process.nextTick(() => {  | 
227 | 227 |         NativeModule.require('_third_party_main');  | 
228 | 228 |       });  | 
229 | 229 |     } else if (process.argv[1] === 'inspect' || process.argv[1] === 'debug') {  | 
 | 
234 | 234 |       }  | 
235 | 235 | 
 
  | 
236 | 236 |       // Start the debugger agent.  | 
237 |  | -      process.nextTick(function() {  | 
 | 237 | +      process.nextTick(() => {  | 
238 | 238 |         NativeModule.require('internal/deps/node-inspect/lib/_inspect').start();  | 
239 | 239 |       });  | 
240 | 240 | 
 
  | 
 | 
287 | 287 |         if (process._forceRepl || NativeModule.require('tty').isatty(0)) {  | 
288 | 288 |           // REPL  | 
289 | 289 |           const cliRepl = NativeModule.require('internal/repl');  | 
290 |  | -          cliRepl.createInternalRepl(process.env, function(err, repl) {  | 
 | 290 | +          cliRepl.createInternalRepl(process.env, (err, repl) => {  | 
291 | 291 |             if (err) {  | 
292 | 292 |               throw err;  | 
293 | 293 |             }  | 
294 |  | -            repl.on('exit', function() {  | 
 | 294 | +            repl.on('exit', () => {  | 
295 | 295 |               if (repl._flushing) {  | 
296 | 296 |                 repl.pause();  | 
297 |  | -                return repl.once('flushHistory', function() {  | 
 | 297 | +                return repl.once('flushHistory', () => {  | 
298 | 298 |                   process.exit();  | 
299 | 299 |                 });  | 
300 | 300 |               }  | 
 | 
311 | 311 |           process.stdin.setEncoding('utf8');  | 
312 | 312 | 
 
  | 
313 | 313 |           let code = '';  | 
314 |  | -          process.stdin.on('data', function(d) {  | 
 | 314 | +          process.stdin.on('data', (d) => {  | 
315 | 315 |             code += d;  | 
316 | 316 |           });  | 
317 | 317 | 
 
  | 
 | 
484 | 484 |       emitAfter  | 
485 | 485 |     } = NativeModule.require('internal/async_hooks');  | 
486 | 486 | 
 
  | 
487 |  | -    process._fatalException = function(er) {  | 
 | 487 | +    process._fatalException = (er) => {  | 
488 | 488 |       // It's possible that defaultTriggerAsyncId was set for a constructor  | 
489 | 489 |       // call that threw and was never cleared. So clear it now.  | 
490 | 490 |       clearDefaultTriggerAsyncId();  | 
 | 
0 commit comments