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

Quote the empty string as an ident #7644

Merged
merged 1 commit into from
Nov 29, 2016

Conversation

jsternberg
Copy link
Contributor

Without this quoting, the function max("") turns into max() and will
not be reparsed correctly.

@jwilder
Copy link
Contributor

jwilder commented Nov 18, 2016

--- FAIL: TestQuoteIdent (0.00s)
    parser_test.go:2820: 0. []: mismatch:  != ""

@jwilder jwilder added this to the 1.1.1 milestone Nov 18, 2016
Without this quoting, the function `max("")` turns into `max()` and will
not be reparsed correctly.
@jsternberg jsternberg force-pushed the js-fix-empty-variable-serialization branch from 5b92ba4 to c957bf7 Compare November 19, 2016 02:10
@jsternberg jsternberg merged commit e0c1908 into master Nov 29, 2016
@jsternberg jsternberg deleted the js-fix-empty-variable-serialization branch November 29, 2016 18:16
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