repl: preprocess only for defaultEval#9752
repl: preprocess only for defaultEval#9752princejwesley wants to merge 1 commit intonodejs:masterfrom
Conversation
addaleax
left a comment
There was a problem hiding this comment.
LGTM pending CI, thank you for doing this :)
test/parallel/test-repl-eval.js
Outdated
There was a problem hiding this comment.
Can I suggest that you add a comment describing why this particular input was chosen?
lib/repl.js
Outdated
There was a problem hiding this comment.
This appending of the \n isn't needed for custom eval functions?
Because it was being appended before.
There was a problem hiding this comment.
@nunocastromartins Good point. \n was appended for most of the cases and it was done in same preprocess. I'll add \n for all cases as if eval function receives what user entered including the final enter.
CC: @Fishrock123
|
Last CI wasn't so happy...? |
|
New CI: https://ci.nodejs.org/job/node-test-pull-request/4974/ |
|
@Fishrock123 CI is green 😄 |
|
@nodejs/collaborators I'll land this tomorrow if there is no objection. |
|
@addaleax review the changes made after your approval. |
|
@nodejs/collaborators ping |
addaleax
left a comment
There was a problem hiding this comment.
Still LGTM
(sorry, I was a bit busy here at NINA)
Code preprocessing is applicable only for default eval function. Therefore, Moved `preprocess` function invocation inside `defaultEval` function. Fixes: nodejs#9743 PR-URL: nodejs#9752 Reviewed-By: Anna Henningsen <anna@addaleax.net>
ed4179b to
b345fab
Compare
|
Rebased, CI again: https://ci.nodejs.org/job/node-test-pull-request/5157/ |
|
Landed in 9366b8 |
Code preprocessing is applicable only for default eval function. Therefore, Moved `preprocess` function invocation inside `defaultEval` function. Fixes: nodejs#9743 PR-URL: nodejs#9752 Reviewed-By: Anna Henningsen <anna@addaleax.net>
Checklist
make -j8 test(UNIX), orvcbuild test nosign(Windows) passesAffected core subsystem(s)
repl
Description of change
Code preprocessing is applicable only for default
eval function. Therefore, Moved
preprocessfunctioninvocation inside
defaultEvalfunction.Fixes: #9743