Skip to content

Commit b99fce3

Browse files
committed
repl: remove workaround for function redefinition
The issue is fixed upstream in V8. Thus we do not need this workaround in REPL. Refs: #548
1 parent 459a797 commit b99fce3

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/repl.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -567,12 +567,6 @@ function REPLServer(prompt,
567567
// an expression.
568568
cmd = `(${cmd})`;
569569
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-
);
576570
}
577571
// Append a \n so that it will be either
578572
// terminated, or continued onto the next expression if it's an

0 commit comments

Comments
 (0)