@@ -99,11 +99,11 @@ const {
9999const { BuiltinModule } = require ( 'internal/bootstrap/loaders' ) ;
100100const {
101101 makeRequireFunction,
102- addBuiltinLibsToObject
102+ addBuiltinLibsToObject,
103103} = require ( 'internal/modules/helpers' ) ;
104104const {
105105 isIdentifierStart,
106- isIdentifierChar
106+ isIdentifierChar,
107107} = require ( 'internal/deps/acorn/acorn/dist/acorn' ) ;
108108const {
109109 decorateErrorStack,
@@ -118,7 +118,7 @@ const path = require('path');
118118const fs = require ( 'fs' ) ;
119119const { Interface } = require ( 'readline' ) ;
120120const {
121- commonPrefix
121+ commonPrefix,
122122} = require ( 'internal/readline/utils' ) ;
123123const { Console } = require ( 'console' ) ;
124124const CJSModule = require ( 'internal/modules/cjs/loader' ) . Module ;
@@ -173,7 +173,7 @@ const {
173173} = internalBinding ( 'util' ) ;
174174const {
175175 startSigintWatchdog,
176- stopSigintWatchdog
176+ stopSigintWatchdog,
177177} = internalBinding ( 'contextify' ) ;
178178
179179const history = require ( 'internal/repl/history' ) ;
@@ -296,7 +296,7 @@ function REPLServer(prompt,
296296 'DEP0141' ) :
297297 ( val ) => this . input = val ,
298298 enumerable : false ,
299- configurable : true
299+ configurable : true ,
300300 } ) ;
301301 ObjectDefineProperty ( this , 'outputStream' , {
302302 __proto__ : null ,
@@ -313,7 +313,7 @@ function REPLServer(prompt,
313313 'DEP0141' ) :
314314 ( val ) => this . output = val ,
315315 enumerable : false ,
316- configurable : true
316+ configurable : true ,
317317 } ) ;
318318
319319 this . allowBlockingCompletions = ! ! options . allowBlockingCompletions ;
@@ -462,7 +462,7 @@ function REPLServer(prompt,
462462 importModuleDynamically : ( specifier , _ , importAssertions ) => {
463463 return asyncESM . esmLoader . import ( specifier , parentURL ,
464464 importAssertions ) ;
465- }
465+ } ,
466466 } ) ;
467467 } catch ( fallbackError ) {
468468 if ( isRecoverableError ( fallbackError , fallbackCode ) ) {
@@ -506,7 +506,7 @@ function REPLServer(prompt,
506506 importModuleDynamically : ( specifier , _ , importAssertions ) => {
507507 return asyncESM . esmLoader . import ( specifier , parentURL ,
508508 importAssertions ) ;
509- }
509+ } ,
510510 } ) ;
511511 } catch ( e ) {
512512 debug ( 'parse error %j' , code , e ) ;
@@ -563,7 +563,7 @@ function REPLServer(prompt,
563563 try {
564564 const scriptOptions = {
565565 displayErrors : false ,
566- breakOnSigint : self . breakEvalOnSigint
566+ breakOnSigint : self . breakEvalOnSigint ,
567567 } ;
568568
569569 if ( self . useGlobal ) {
@@ -767,7 +767,7 @@ function REPLServer(prompt,
767767 completer : options . completer || completer ,
768768 terminal : options . terminal ,
769769 historySize : options . historySize ,
770- prompt
770+ prompt,
771771 } ] ) ;
772772
773773 self . resetContext ( ) ;
@@ -793,7 +793,7 @@ function REPLServer(prompt,
793793 return ObjectAssign ( writer . options , options ) ;
794794 } ,
795795 enumerable : true ,
796- configurable : true
796+ configurable : true ,
797797 } ) ;
798798 }
799799 }
@@ -967,7 +967,7 @@ function REPLServer(prompt,
967967
968968 const {
969969 clearPreview,
970- showPreview
970+ showPreview,
971971 } = setupPreview (
972972 this ,
973973 kContextId ,
@@ -1097,7 +1097,7 @@ REPLServer.prototype.createContext = function() {
10971097 __proto__ : null ,
10981098 configurable : true ,
10991099 writable : true ,
1100- value : _console
1100+ value : _console ,
11011101 } ) ;
11021102 }
11031103
@@ -1108,13 +1108,13 @@ REPLServer.prototype.createContext = function() {
11081108 __proto__ : null ,
11091109 configurable : true ,
11101110 writable : true ,
1111- value : replModule
1111+ value : replModule ,
11121112 } ) ;
11131113 ObjectDefineProperty ( context , 'require' , {
11141114 __proto__ : null ,
11151115 configurable : true ,
11161116 writable : true ,
1117- value : makeRequireFunction ( replModule )
1117+ value : makeRequireFunction ( replModule ) ,
11181118 } ) ;
11191119
11201120 addBuiltinLibsToObject ( context , '<REPL>' ) ;
@@ -1140,7 +1140,7 @@ REPLServer.prototype.resetContext = function() {
11401140 this . underscoreAssigned = true ;
11411141 this . output . write ( 'Expression assignment to _ now disabled.\n' ) ;
11421142 }
1143- }
1143+ } ,
11441144 } ) ;
11451145
11461146 ObjectDefineProperty ( this . context , '_error' , {
@@ -1154,7 +1154,7 @@ REPLServer.prototype.resetContext = function() {
11541154 this . output . write (
11551155 'Expression assignment to _error now disabled.\n' ) ;
11561156 }
1157- }
1157+ } ,
11581158 } ) ;
11591159
11601160 // Allow REPL extensions to extend the new context
@@ -1240,7 +1240,7 @@ function getGlobalLexicalScopeNames(contextId) {
12401240 return sendInspectorCommand ( ( session ) => {
12411241 let names = [ ] ;
12421242 session . post ( 'Runtime.globalLexicalScopeNames' , {
1243- executionContextId : contextId
1243+ executionContextId : contextId ,
12441244 } , ( error , result ) => {
12451245 if ( ! error ) names = result . names ;
12461246 } ) ;
@@ -1661,7 +1661,7 @@ function _memory(cmd) {
16611661 // scope will not work for this function.
16621662 ArrayPrototypePush ( self . lines . level , {
16631663 line : self . lines . length - 1 ,
1664- depth : depth
1664+ depth : depth ,
16651665 } ) ;
16661666 } else if ( depth < 0 ) {
16671667 // Going... up.
@@ -1711,7 +1711,7 @@ function defineDefaultCommands(repl) {
17111711 action : function ( ) {
17121712 this . clearBufferedCommand ( ) ;
17131713 this . displayPrompt ( ) ;
1714- }
1714+ } ,
17151715 } ) ;
17161716
17171717 let clearMessage ;
@@ -1729,14 +1729,14 @@ function defineDefaultCommands(repl) {
17291729 this . resetContext ( ) ;
17301730 }
17311731 this . displayPrompt ( ) ;
1732- }
1732+ } ,
17331733 } ) ;
17341734
17351735 repl . defineCommand ( 'exit' , {
17361736 help : 'Exit the REPL' ,
17371737 action : function ( ) {
17381738 this . close ( ) ;
1739- }
1739+ } ,
17401740 } ) ;
17411741
17421742 repl . defineCommand ( 'help' , {
@@ -1756,7 +1756,7 @@ function defineDefaultCommands(repl) {
17561756 this . output . write ( '\nPress Ctrl+C to abort current expression, ' +
17571757 'Ctrl+D to exit the REPL\n' ) ;
17581758 this . displayPrompt ( ) ;
1759- }
1759+ } ,
17601760 } ) ;
17611761
17621762 repl . defineCommand ( 'save' , {
@@ -1769,7 +1769,7 @@ function defineDefaultCommands(repl) {
17691769 this . output . write ( `Failed to save: ${ file } \n` ) ;
17701770 }
17711771 this . displayPrompt ( ) ;
1772- }
1772+ } ,
17731773 } ) ;
17741774
17751775 repl . defineCommand ( 'load' , {
@@ -1792,7 +1792,7 @@ function defineDefaultCommands(repl) {
17921792 this . output . write ( `Failed to load: ${ file } \n` ) ;
17931793 }
17941794 this . displayPrompt ( ) ;
1795- }
1795+ } ,
17961796 } ) ;
17971797 if ( repl . terminal ) {
17981798 repl . defineCommand ( 'editor' , {
@@ -1801,7 +1801,7 @@ function defineDefaultCommands(repl) {
18011801 _turnOnEditorMode ( this ) ;
18021802 this . output . write (
18031803 '// Entering editor mode (Ctrl+D to finish, Ctrl+C to cancel)\n' ) ;
1804- }
1804+ } ,
18051805 } ) ;
18061806 }
18071807}
@@ -1818,15 +1818,15 @@ module.exports = {
18181818 REPLServer,
18191819 REPL_MODE_SLOPPY ,
18201820 REPL_MODE_STRICT ,
1821- Recoverable
1821+ Recoverable,
18221822} ;
18231823
18241824ObjectDefineProperty ( module . exports , 'builtinModules' , {
18251825 __proto__ : null ,
18261826 get : ( ) => _builtinLibs ,
18271827 set : ( val ) => _builtinLibs = val ,
18281828 enumerable : true ,
1829- configurable : true
1829+ configurable : true ,
18301830} ) ;
18311831
18321832ObjectDefineProperty ( module . exports , '_builtinLibs' , {
@@ -1842,5 +1842,5 @@ ObjectDefineProperty(module.exports, '_builtinLibs', {
18421842 'DEP0142' ,
18431843 ) : ( val ) => _builtinLibs = val ,
18441844 enumerable : false ,
1845- configurable : true
1845+ configurable : true ,
18461846} ) ;
0 commit comments