@@ -54,7 +54,6 @@ const {
54
54
const internalUtil = require ( 'internal/util' ) ;
55
55
const util = require ( 'util' ) ;
56
56
const { internalBinding } = require ( 'internal/bootstrap/loaders' ) ;
57
- const utilBinding = internalBinding ( 'util' ) ;
58
57
const { inherits } = util ;
59
58
const Stream = require ( 'stream' ) ;
60
59
const vm = require ( 'vm' ) ;
@@ -79,7 +78,9 @@ const {
79
78
propertyFilter : {
80
79
ALL_PROPERTIES ,
81
80
SKIP_SYMBOLS
82
- }
81
+ } ,
82
+ startSigintWatchdog,
83
+ stopSigintWatchdog
83
84
} = internalBinding ( 'util' ) ;
84
85
85
86
// Lazy-loaded.
@@ -314,7 +315,7 @@ function REPLServer(prompt,
314
315
if ( self . breakEvalOnSigint ) {
315
316
// Start the SIGINT watchdog before entering raw mode so that a very
316
317
// quick Ctrl+C doesn't lead to aborting the process completely.
317
- if ( ! utilBinding . startSigintWatchdog ( ) )
318
+ if ( ! startSigintWatchdog ( ) )
318
319
throw new ERR_CANNOT_WATCH_SIGINT ( ) ;
319
320
previouslyInRawMode = self . _setRawMode ( false ) ;
320
321
}
@@ -338,7 +339,7 @@ function REPLServer(prompt,
338
339
339
340
// Returns true if there were pending SIGINTs *after* the script
340
341
// has terminated without being interrupted itself.
341
- if ( utilBinding . stopSigintWatchdog ( ) ) {
342
+ if ( stopSigintWatchdog ( ) ) {
342
343
self . emit ( 'SIGINT' ) ;
343
344
}
344
345
}
0 commit comments