@@ -100,11 +100,11 @@ const {
100100const { BuiltinModule } = require ( 'internal/bootstrap/loaders' ) ;
101101const {
102102 makeRequireFunction,
103- addBuiltinLibsToObject
103+ addBuiltinLibsToObject,
104104} = require ( 'internal/modules/cjs/helpers' ) ;
105105const {
106106 isIdentifierStart,
107- isIdentifierChar
107+ isIdentifierChar,
108108} = require ( 'internal/deps/acorn/acorn/dist/acorn' ) ;
109109const {
110110 decorateErrorStack,
@@ -119,7 +119,7 @@ const path = require('path');
119119const fs = require ( 'fs' ) ;
120120const { Interface } = require ( 'readline' ) ;
121121const {
122- commonPrefix
122+ commonPrefix,
123123} = require ( 'internal/readline/utils' ) ;
124124const { Console } = require ( 'console' ) ;
125125const CJSModule = require ( 'internal/modules/cjs/loader' ) . Module ;
@@ -174,7 +174,7 @@ const {
174174} = internalBinding ( 'util' ) ;
175175const {
176176 startSigintWatchdog,
177- stopSigintWatchdog
177+ stopSigintWatchdog,
178178} = internalBinding ( 'contextify' ) ;
179179
180180const history = require ( 'internal/repl/history' ) ;
@@ -298,7 +298,7 @@ function REPLServer(prompt,
298298 'DEP0141' ) :
299299 ( val ) => this . input = val ,
300300 enumerable : false ,
301- configurable : true
301+ configurable : true ,
302302 } ) ;
303303 ObjectDefineProperty ( this , 'outputStream' , {
304304 __proto__ : null ,
@@ -315,7 +315,7 @@ function REPLServer(prompt,
315315 'DEP0141' ) :
316316 ( val ) => this . output = val ,
317317 enumerable : false ,
318- configurable : true
318+ configurable : true ,
319319 } ) ;
320320
321321 this . allowBlockingCompletions = ! ! options . allowBlockingCompletions ;
@@ -464,7 +464,7 @@ function REPLServer(prompt,
464464 importModuleDynamically : ( specifier , _ , importAssertions ) => {
465465 return asyncESM . esmLoader . import ( specifier , parentURL ,
466466 importAssertions ) ;
467- }
467+ } ,
468468 } ) ;
469469 } catch ( fallbackError ) {
470470 if ( isRecoverableError ( fallbackError , fallbackCode ) ) {
@@ -508,7 +508,7 @@ function REPLServer(prompt,
508508 importModuleDynamically : ( specifier , _ , importAssertions ) => {
509509 return asyncESM . esmLoader . import ( specifier , parentURL ,
510510 importAssertions ) ;
511- }
511+ } ,
512512 } ) ;
513513 } catch ( e ) {
514514 debug ( 'parse error %j' , code , e ) ;
@@ -565,7 +565,7 @@ function REPLServer(prompt,
565565 try {
566566 const scriptOptions = {
567567 displayErrors : false ,
568- breakOnSigint : self . breakEvalOnSigint
568+ breakOnSigint : self . breakEvalOnSigint ,
569569 } ;
570570
571571 if ( self . useGlobal ) {
@@ -769,7 +769,7 @@ function REPLServer(prompt,
769769 completer : options . completer || completer ,
770770 terminal : options . terminal ,
771771 historySize : options . historySize ,
772- prompt
772+ prompt,
773773 } ] ) ;
774774
775775 self . resetContext ( ) ;
@@ -795,7 +795,7 @@ function REPLServer(prompt,
795795 return ObjectAssign ( writer . options , options ) ;
796796 } ,
797797 enumerable : true ,
798- configurable : true
798+ configurable : true ,
799799 } ) ;
800800 }
801801 }
@@ -969,7 +969,7 @@ function REPLServer(prompt,
969969
970970 const {
971971 clearPreview,
972- showPreview
972+ showPreview,
973973 } = setupPreview (
974974 this ,
975975 kContextId ,
@@ -1099,7 +1099,7 @@ REPLServer.prototype.createContext = function() {
10991099 __proto__ : null ,
11001100 configurable : true ,
11011101 writable : true ,
1102- value : _console
1102+ value : _console ,
11031103 } ) ;
11041104 }
11051105
@@ -1110,13 +1110,13 @@ REPLServer.prototype.createContext = function() {
11101110 __proto__ : null ,
11111111 configurable : true ,
11121112 writable : true ,
1113- value : replModule
1113+ value : replModule ,
11141114 } ) ;
11151115 ObjectDefineProperty ( context , 'require' , {
11161116 __proto__ : null ,
11171117 configurable : true ,
11181118 writable : true ,
1119- value : makeRequireFunction ( replModule )
1119+ value : makeRequireFunction ( replModule ) ,
11201120 } ) ;
11211121
11221122 addBuiltinLibsToObject ( context , '<REPL>' ) ;
@@ -1142,7 +1142,7 @@ REPLServer.prototype.resetContext = function() {
11421142 this . underscoreAssigned = true ;
11431143 this . output . write ( 'Expression assignment to _ now disabled.\n' ) ;
11441144 }
1145- }
1145+ } ,
11461146 } ) ;
11471147
11481148 ObjectDefineProperty ( this . context , '_error' , {
@@ -1156,7 +1156,7 @@ REPLServer.prototype.resetContext = function() {
11561156 this . output . write (
11571157 'Expression assignment to _error now disabled.\n' ) ;
11581158 }
1159- }
1159+ } ,
11601160 } ) ;
11611161
11621162 // Allow REPL extensions to extend the new context
@@ -1242,7 +1242,7 @@ function getGlobalLexicalScopeNames(contextId) {
12421242 return sendInspectorCommand ( ( session ) => {
12431243 let names = [ ] ;
12441244 session . post ( 'Runtime.globalLexicalScopeNames' , {
1245- executionContextId : contextId
1245+ executionContextId : contextId ,
12461246 } , ( error , result ) => {
12471247 if ( ! error ) names = result . names ;
12481248 } ) ;
@@ -1666,7 +1666,7 @@ function _memory(cmd) {
16661666 // scope will not work for this function.
16671667 ArrayPrototypePush ( self . lines . level , {
16681668 line : self . lines . length - 1 ,
1669- depth : depth
1669+ depth : depth ,
16701670 } ) ;
16711671 } else if ( depth < 0 ) {
16721672 // Going... up.
@@ -1716,7 +1716,7 @@ function defineDefaultCommands(repl) {
17161716 action : function ( ) {
17171717 this . clearBufferedCommand ( ) ;
17181718 this . displayPrompt ( ) ;
1719- }
1719+ } ,
17201720 } ) ;
17211721
17221722 let clearMessage ;
@@ -1734,14 +1734,14 @@ function defineDefaultCommands(repl) {
17341734 this . resetContext ( ) ;
17351735 }
17361736 this . displayPrompt ( ) ;
1737- }
1737+ } ,
17381738 } ) ;
17391739
17401740 repl . defineCommand ( 'exit' , {
17411741 help : 'Exit the REPL' ,
17421742 action : function ( ) {
17431743 this . close ( ) ;
1744- }
1744+ } ,
17451745 } ) ;
17461746
17471747 repl . defineCommand ( 'help' , {
@@ -1761,7 +1761,7 @@ function defineDefaultCommands(repl) {
17611761 this . output . write ( '\nPress Ctrl+C to abort current expression, ' +
17621762 'Ctrl+D to exit the REPL\n' ) ;
17631763 this . displayPrompt ( ) ;
1764- }
1764+ } ,
17651765 } ) ;
17661766
17671767 repl . defineCommand ( 'save' , {
@@ -1774,7 +1774,7 @@ function defineDefaultCommands(repl) {
17741774 this . output . write ( `Failed to save: ${ file } \n` ) ;
17751775 }
17761776 this . displayPrompt ( ) ;
1777- }
1777+ } ,
17781778 } ) ;
17791779
17801780 repl . defineCommand ( 'load' , {
@@ -1797,7 +1797,7 @@ function defineDefaultCommands(repl) {
17971797 this . output . write ( `Failed to load: ${ file } \n` ) ;
17981798 }
17991799 this . displayPrompt ( ) ;
1800- }
1800+ } ,
18011801 } ) ;
18021802 if ( repl . terminal ) {
18031803 repl . defineCommand ( 'editor' , {
@@ -1806,7 +1806,7 @@ function defineDefaultCommands(repl) {
18061806 _turnOnEditorMode ( this ) ;
18071807 this . output . write (
18081808 '// Entering editor mode (Ctrl+D to finish, Ctrl+C to cancel)\n' ) ;
1809- }
1809+ } ,
18101810 } ) ;
18111811 }
18121812}
@@ -1823,15 +1823,15 @@ module.exports = {
18231823 REPLServer,
18241824 REPL_MODE_SLOPPY ,
18251825 REPL_MODE_STRICT ,
1826- Recoverable
1826+ Recoverable,
18271827} ;
18281828
18291829ObjectDefineProperty ( module . exports , 'builtinModules' , {
18301830 __proto__ : null ,
18311831 get : ( ) => _builtinLibs ,
18321832 set : ( val ) => _builtinLibs = val ,
18331833 enumerable : true ,
1834- configurable : true
1834+ configurable : true ,
18351835} ) ;
18361836
18371837ObjectDefineProperty ( module . exports , '_builtinLibs' , {
@@ -1847,5 +1847,5 @@ ObjectDefineProperty(module.exports, '_builtinLibs', {
18471847 'DEP0142' ,
18481848 ) : ( val ) => _builtinLibs = val ,
18491849 enumerable : false ,
1850- configurable : true
1850+ configurable : true ,
18511851} ) ;
0 commit comments