diff --git a/lib/net.js b/lib/net.js index a22754eb302c24..3d7122765bf358 100644 --- a/lib/net.js +++ b/lib/net.js @@ -988,9 +988,9 @@ Socket.prototype.connect = function() { if (pipe) { if (typeof path !== 'string') { throw new errors.TypeError('ERR_INVALID_ARG_TYPE', - 'options.path', - 'string', - path); + 'options.path', + 'string', + path); } internalConnect(this, path); } else { diff --git a/lib/repl.js b/lib/repl.js index 41e630488dcd12..a201ecc62222b6 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -1069,7 +1069,9 @@ REPLServer.prototype.defineCommand = function(keyword, cmd) { cmd = { action: cmd }; } else if (typeof cmd.action !== 'function') { throw new errors.TypeError('ERR_INVALID_ARG_TYPE', - 'action', 'function', cmd.action); + 'action', + 'function', + cmd.action); } this.commands[keyword] = cmd; };