Skip to content

Conversation

@lance
Copy link
Member

@lancelance commented Oct 4, 2017

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: #14861

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

repl

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. Fixes: #14022 PR-URL: #14861 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
@nodejs-github-botnodejs-github-bot added repl Issues and PRs related to the REPL subsystem. v6.x labels Oct 4, 2017
@lance
Copy link
MemberAuthor

lance commented Oct 4, 2017

@lance
Copy link
MemberAuthor

lance commented Oct 9, 2017

I know there are tons of code-and-learn PRs to shovel through. Just keeping this on the radar. Ping @nodejs/collaborators @nodejs/backporting

MylesBorins pushed a commit that referenced this pull request Oct 10, 2017
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. Fixes: #14022 Backport-PR-URL: #15775 PR-URL: #14861 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
@MylesBorins
Copy link
Contributor

landed in 421365d

MylesBorins pushed a commit that referenced this pull request Oct 25, 2017
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. Fixes: #14022 Backport-PR-URL: #15775 PR-URL: #14861 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

replIssues and PRs related to the REPL subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@lance@MylesBorins@nodejs-github-bot