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

Handle white spaces as described in ECMAScript specs #155

Merged
merged 3 commits into from
Oct 19, 2019
Merged

Handle white spaces as described in ECMAScript specs #155

merged 3 commits into from
Oct 19, 2019

Conversation

evomassiny
Copy link
Contributor

Hello,

This solves the issue: #154
I've simply added all whitespace characters defined in the ECMAScript specification in the main fn lex() loop.
I've followed this part of the specification, according to the code points defined here.

I hope this helps,
thank you for your time,

Evomassiny

Copy link
Member

@jasonwilliams jasonwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thanks

Copy link
Member

@jasonwilliams jasonwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, although it might help to have comments like this one for string:
https://github.com/jasonwilliams/boa/blob/master/src/lib/js/string.rs#L529-L545

@evomassiny
Copy link
Contributor Author

thanks for your suggestion, I've edited it accordingly.

@jasonwilliams jasonwilliams merged commit 3b1074d into boa-dev:master Oct 19, 2019
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.

2 participants