@@ -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 ,
300300enumerable : false ,
301- configurable : true
301+ configurable : true ,
302302} ) ;
303303ObjectDefineProperty ( this , 'outputStream' , {
304304__proto__ : null ,
@@ -315,7 +315,7 @@ function REPLServer(prompt,
315315'DEP0141' ) :
316316( val ) => this . output = val ,
317317enumerable : false ,
318- configurable : true
318+ configurable : true ,
319319} ) ;
320320
321321this . allowBlockingCompletions = ! ! options . allowBlockingCompletions ;
@@ -464,7 +464,7 @@ function REPLServer(prompt,
464464importModuleDynamically : ( specifier , _ , importAssertions ) => {
465465return asyncESM . esmLoader . import ( specifier , parentURL ,
466466importAssertions ) ;
467- }
467+ } ,
468468} ) ;
469469} catch ( fallbackError ) {
470470if ( isRecoverableError ( fallbackError , fallbackCode ) ) {
@@ -508,7 +508,7 @@ function REPLServer(prompt,
508508importModuleDynamically : ( specifier , _ , importAssertions ) => {
509509return asyncESM . esmLoader . import ( specifier , parentURL ,
510510importAssertions ) ;
511- }
511+ } ,
512512} ) ;
513513} catch ( e ) {
514514debug ( 'parse error %j' , code , e ) ;
@@ -565,7 +565,7 @@ function REPLServer(prompt,
565565try {
566566const scriptOptions = {
567567displayErrors : false ,
568- breakOnSigint : self . breakEvalOnSigint
568+ breakOnSigint : self . breakEvalOnSigint ,
569569} ;
570570
571571if ( self . useGlobal ) {
@@ -769,7 +769,7 @@ function REPLServer(prompt,
769769completer : options . completer || completer ,
770770terminal : options . terminal ,
771771historySize : options . historySize ,
772- prompt
772+ prompt,
773773} ] ) ;
774774
775775self . resetContext ( ) ;
@@ -795,7 +795,7 @@ function REPLServer(prompt,
795795return ObjectAssign ( writer . options , options ) ;
796796} ,
797797enumerable : true ,
798- configurable : true
798+ configurable : true ,
799799} ) ;
800800}
801801}
@@ -969,7 +969,7 @@ function REPLServer(prompt,
969969
970970const {
971971 clearPreview,
972- showPreview
972+ showPreview,
973973} = setupPreview (
974974this ,
975975kContextId ,
@@ -1099,7 +1099,7 @@ REPLServer.prototype.createContext = function() {
10991099__proto__ : null ,
11001100configurable : true ,
11011101writable : true ,
1102- value : _console
1102+ value : _console ,
11031103} ) ;
11041104}
11051105
@@ -1110,13 +1110,13 @@ REPLServer.prototype.createContext = function() {
11101110__proto__ : null ,
11111111configurable : true ,
11121112writable : true ,
1113- value : replModule
1113+ value : replModule ,
11141114} ) ;
11151115ObjectDefineProperty ( context , 'require' , {
11161116__proto__ : null ,
11171117configurable : true ,
11181118writable : true ,
1119- value : makeRequireFunction ( replModule )
1119+ value : makeRequireFunction ( replModule ) ,
11201120} ) ;
11211121
11221122addBuiltinLibsToObject ( context , '<REPL>' ) ;
@@ -1142,7 +1142,7 @@ REPLServer.prototype.resetContext = function() {
11421142this . underscoreAssigned = true ;
11431143this . output . write ( 'Expression assignment to _ now disabled.\n' ) ;
11441144}
1145- }
1145+ } ,
11461146} ) ;
11471147
11481148ObjectDefineProperty ( this . context , '_error' , {
@@ -1156,7 +1156,7 @@ REPLServer.prototype.resetContext = function() {
11561156this . 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) {
12421242return sendInspectorCommand ( ( session ) => {
12431243let names = [ ] ;
12441244session . post ( 'Runtime.globalLexicalScopeNames' , {
1245- executionContextId : contextId
1245+ executionContextId : contextId ,
12461246} , ( error , result ) => {
12471247if ( ! error ) names = result . names ;
12481248} ) ;
@@ -1666,7 +1666,7 @@ function _memory(cmd) {
16661666// scope will not work for this function.
16671667ArrayPrototypePush ( self . lines . level , {
16681668line : 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) {
17161716action : function ( ) {
17171717this . clearBufferedCommand ( ) ;
17181718this . displayPrompt ( ) ;
1719- }
1719+ } ,
17201720} ) ;
17211721
17221722let clearMessage ;
@@ -1734,14 +1734,14 @@ function defineDefaultCommands(repl) {
17341734this . resetContext ( ) ;
17351735}
17361736this . displayPrompt ( ) ;
1737- }
1737+ } ,
17381738} ) ;
17391739
17401740repl . defineCommand ( 'exit' , {
17411741help : 'Exit the REPL' ,
17421742action : function ( ) {
17431743this . close ( ) ;
1744- }
1744+ } ,
17451745} ) ;
17461746
17471747repl . defineCommand ( 'help' , {
@@ -1761,7 +1761,7 @@ function defineDefaultCommands(repl) {
17611761this . output . write ( '\nPress Ctrl+C to abort current expression, ' +
17621762'Ctrl+D to exit the REPL\n' ) ;
17631763this . displayPrompt ( ) ;
1764- }
1764+ } ,
17651765} ) ;
17661766
17671767repl . defineCommand ( 'save' , {
@@ -1774,7 +1774,7 @@ function defineDefaultCommands(repl) {
17741774this . output . write ( `Failed to save: ${ file } \n` ) ;
17751775}
17761776this . displayPrompt ( ) ;
1777- }
1777+ } ,
17781778} ) ;
17791779
17801780repl . defineCommand ( 'load' , {
@@ -1797,7 +1797,7 @@ function defineDefaultCommands(repl) {
17971797this . output . write ( `Failed to load: ${ file } \n` ) ;
17981798}
17991799this . displayPrompt ( ) ;
1800- }
1800+ } ,
18011801} ) ;
18021802if ( repl . terminal ) {
18031803repl . defineCommand ( 'editor' , {
@@ -1806,7 +1806,7 @@ function defineDefaultCommands(repl) {
18061806_turnOnEditorMode ( this ) ;
18071807this . 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,
18241824REPL_MODE_SLOPPY ,
18251825REPL_MODE_STRICT ,
1826- Recoverable
1826+ Recoverable,
18271827} ;
18281828
18291829ObjectDefineProperty ( module . exports , 'builtinModules' , {
18301830__proto__ : null ,
18311831get : ( ) => _builtinLibs ,
18321832set : ( val ) => _builtinLibs = val ,
18331833enumerable : 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 ,
18491849enumerable : false ,
1850- configurable : true
1850+ configurable : true ,
18511851} ) ;
0 commit comments