@@ -880,7 +880,7 @@ REPLServer.prototype.setPrompt = function setPrompt(prompt) {
880
880
} ;
881
881
882
882
REPLServer . prototype . turnOffEditorMode = util . deprecate (
883
- function ( ) { _turnOffEditorMode ( this ) ; } ,
883
+ function deprecateCB ( ) { _turnOffEditorMode ( this ) ; } ,
884
884
'REPLServer.turnOffEditorMode() is deprecated' ,
885
885
'DEP0078' ) ;
886
886
@@ -1401,7 +1401,7 @@ function _turnOffEditorMode(repl) {
1401
1401
function defineDefaultCommands ( repl ) {
1402
1402
repl . defineCommand ( 'break' , {
1403
1403
help : 'Sometimes you get stuck, this gets you out' ,
1404
- action : function ( ) {
1404
+ action : function defineDefaultCommandsAction ( ) {
1405
1405
this . clearBufferedCommand ( ) ;
1406
1406
this . displayPrompt ( ) ;
1407
1407
}
@@ -1415,7 +1415,7 @@ function defineDefaultCommands(repl) {
1415
1415
}
1416
1416
repl . defineCommand ( 'clear' , {
1417
1417
help : clearMessage ,
1418
- action : function ( ) {
1418
+ action : function defineCommandClearAction ( ) {
1419
1419
this . clearBufferedCommand ( ) ;
1420
1420
if ( ! this . useGlobal ) {
1421
1421
this . outputStream . write ( 'Clearing context...\n' ) ;
@@ -1427,14 +1427,14 @@ function defineDefaultCommands(repl) {
1427
1427
1428
1428
repl . defineCommand ( 'exit' , {
1429
1429
help : 'Exit the repl' ,
1430
- action : function ( ) {
1430
+ action : function defineCommandExitAction ( ) {
1431
1431
this . close ( ) ;
1432
1432
}
1433
1433
} ) ;
1434
1434
1435
1435
repl . defineCommand ( 'help' , {
1436
1436
help : 'Print this help message' ,
1437
- action : function ( ) {
1437
+ action : function defineCommandHelpAction ( ) {
1438
1438
const names = Object . keys ( this . commands ) . sort ( ) ;
1439
1439
const longestNameLength = names . reduce (
1440
1440
( max , name ) => Math . max ( max , name . length ) ,
@@ -1453,7 +1453,7 @@ function defineDefaultCommands(repl) {
1453
1453
1454
1454
repl . defineCommand ( 'save' , {
1455
1455
help : 'Save all evaluated commands in this REPL session to a file' ,
1456
- action : function ( file ) {
1456
+ action : function defineCommandSaveAction ( file ) {
1457
1457
try {
1458
1458
fs . writeFileSync ( file , this . lines . join ( '\n' ) + '\n' ) ;
1459
1459
this . outputStream . write ( 'Session saved to: ' + file + '\n' ) ;
@@ -1466,7 +1466,7 @@ function defineDefaultCommands(repl) {
1466
1466
1467
1467
repl . defineCommand ( 'load' , {
1468
1468
help : 'Load JS from a file into the REPL session' ,
1469
- action : function ( file ) {
1469
+ action : function defineDefineCommandLoadAction ( file ) {
1470
1470
try {
1471
1471
var stats = fs . statSync ( file ) ;
1472
1472
if ( stats && stats . isFile ( ) ) {
0 commit comments