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

Printing desugared code does not preserve line break characters #46

Open
progval opened this issue Jul 10, 2014 · 0 comments
Open

Printing desugared code does not preserve line break characters #46

progval opened this issue Jul 10, 2014 · 0 comments

Comments

@progval
Copy link
Contributor

progval commented Jul 10, 2014

Direct execution, works as expected:

vlorentz@gommier:~/js/LambdaS5/tests$ echo "print('foo\nbar')" > /tmp/tmp.js && ../obj/s5.d.byte -desugar /tmp/tmp.js -env ../envs/es5.env -apply -eval
foo
bar
undefined

However, if I write desugared code to a temporary file, and then execute that temporary file, it does not display the same value:

vlorentz@gommier:~/js/LambdaS5/tests$ echo "print('foo\nbar')" > /tmp/tmp.js && ./s5-desugar /tmp/tmp.js > /tmp/tmp.ljs
vlorentz@gommier:~/js/LambdaS5/tests$ ../obj/s5.d.byte /tmp/tmp.ljs -env ../envs/es5.env -apply -eval
foo\nbar
undefined
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

No branches or pull requests

1 participant