[v6.x backport] repl: force editorMode in .load
The .load
command would fail with any file that contains
multiline .
operator expressions. This was particularly
noticeable when chaining promises or multi-line arrow
expressions.
This change Forces the REPL to be in editorMode
while loading
a file from disk using the .load
command.
Original PR: https://github.com/nodejs/node/pull/14861
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
repl