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

Addressing Issue #25 #76

Closed
wants to merge 7 commits into from

Conversation

adebellis
Copy link
Contributor

@adebellis adebellis commented Oct 17, 2020

Hi,
I extended the scope of the changes to address both number and string literals (as suggested by the todo).
I opted for a general error message that can also be used for other kinds of literal (i.e. ({ true })) is not valid).
I'll wait for your feedback!

Copy link
Collaborator

@strager strager left a comment

Choose a reason for hiding this comment

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

Looks great, aside from some minor comments. Let me know when I should merge your changes.

src/quick-lint-js/error.h Outdated Show resolved Hide resolved
src/quick-lint-js/error.h Outdated Show resolved Hide resolved
src/parse.cpp Outdated Show resolved Hide resolved
@strager strager linked an issue Oct 17, 2020 that may be closed by this pull request
@adebellis
Copy link
Contributor Author

Sorry for some possibly redundant commits.
You can go ahead and merge if everything is good!

@strager
Copy link
Collaborator

strager commented Oct 17, 2020

Landed as commit 502e60c.

@strager strager closed this Oct 17, 2020
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.

Disallow lone number literals in object literals
2 participants