We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2c6ae5 commit 007386eCopy full SHA for 007386e
lib/repl.js
@@ -254,12 +254,6 @@ function REPLServer(prompt,
254
// an expression.
255
cmd = `(${cmd})`;
256
self.wrappedCmd = true;
257
- } else {
258
- // Mitigate https://github.com/nodejs/node/issues/548
259
- cmd = cmd.replace(
260
- /^\s*function(?:\s*(\*)\s*|\s+)([^(]+)/,
261
- (_, genStar, name) => `var ${name} = function ${genStar || ''}${name}`
262
- );
263
}
264
// Append a \n so that it will be either
265
// terminated, or continued onto the next expression if it's an
0 commit comments