-
-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix REPL bug with previous line carryover (#1480)
* Fix expressions carrying over from the previous line * Simplify semicolon insertion logic and avoid issues with line number * fix-previous-line-carryover: Add tests, simplify code, remove dead code * Minor refactor of ASI and and test tweak * Fix linting issue * Avoid adding a semicolon if one already exists, since TS emits double-semicolons as empty statements and this *might* affect stack trace line numbers at some point * lint-fix * Add test case for avoiding double-semicolons; also fix tests to allow console.log() capture Co-authored-by: Andrew Bradley <cspotcode@gmail.com>
- Loading branch information
1 parent
1660ed1
commit 86a27be
Showing
2 changed files
with
134 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters