repl: fix generator function preprocessing
Function declarations in the REPL are preprocessed into variable declarations before being evaluated. However, the preprocessing logic did not account for the star in a generator function declaration, which caused the preprocessor to output invalid syntax in some circumstances. PR-URL: https://github.com/nodejs/node/pull/9852 Fixes: https://github.com/nodejs/node/issues/9850 Reviewed-By:Prince John Wesley <princejohnwesley@gmail.com> Reviewed-By:
Michaël Zasso <targos@protonmail.com>
parent
b49b496a
Please register or sign in to comment