We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1428a92 commit a057871Copy full SHA for a057871
lib/repl.js
@@ -1378,7 +1378,7 @@ REPLServer.prototype.defineCommand = function(keyword, cmd) {
1378
if (typeof cmd === 'function') {
1379
cmd = { action: cmd };
1380
} else if (typeof cmd.action !== 'function') {
1381
- throw new ERR_INVALID_ARG_TYPE('action', 'Function', cmd.action);
+ throw new ERR_INVALID_ARG_TYPE('cmd.action', 'Function', cmd.action);
1382
}
1383
this.commands[keyword] = cmd;
1384
};
0 commit comments