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 459a797 commit b99fce3Copy full SHA for b99fce3
lib/repl.js
@@ -567,12 +567,6 @@ function REPLServer(prompt,
567
// an expression.
568
cmd = `(${cmd})`;
569
self.wrappedCmd = true;
570
- } else {
571
- // Mitigate https://github.com/nodejs/node/issues/548
572
- cmd = cmd.replace(
573
- /^\s*function(?:\s*(\*)\s*|\s+)([^(]+)/,
574
- (_, genStar, name) => `var ${name} = function ${genStar || ''}${name}`
575
- );
576
}
577
// Append a \n so that it will be either
578
// terminated, or continued onto the next expression if it's an
0 commit comments