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

marshal mangle[.properties].reserved from non-Array values #2072

Merged
merged 2 commits into from
Jun 8, 2017

Conversation

alexlamsl
Copy link
Collaborator

I hit this when running test/ufuzz.js, when it attempts to test for mangle.reserved=false during failed tests.

But rather than patching test/ufuzz.js, I reckon it would be beneficial if mangle.reserved and mangle.properties.reserved can accept and treat these values as [].

@alexlamsl
Copy link
Collaborator Author

A quick grep reveals we have almost zero test coverage for mangle.reserved 🙈

https://github.com/mishoo/UglifyJS2/blob/84634da4b5e581c36686082b1071fdf646775f49/test/compress/properties.js#L243

@alexlamsl alexlamsl merged commit 293c566 into mishoo:master Jun 8, 2017
@alexlamsl alexlamsl deleted the reserved branch June 8, 2017 20:29
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.

None yet

1 participant