Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inline comments by converting to block comments. #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

huaiyuan
Copy link

With the existing implementation, a line-based inline comment (that starts with "//") preceded with js code will cause subsequent lines to be ignored (commented out) when joined to become a single line and sent to the inferior js process. This patch lessens the problem by converting inline comments to block comments.

Note that this is not foolproof, e.g., in case the js code to be sent contains a string that contains the "//" substring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant