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

Object properties equal to reserved words are quoted with --screw-ie8 switch #259

Closed
mgol opened this issue Aug 7, 2013 · 0 comments · Fixed by #270 · 4 remaining pull requests
Closed

Object properties equal to reserved words are quoted with --screw-ie8 switch #259

mgol opened this issue Aug 7, 2013 · 0 comments · Fixed by #270 · 4 remaining pull requests

Comments

@mgol
Copy link
Contributor

mgol commented Aug 7, 2013

The following command:

uglifyjs input.js --mangle --compress --screw-ie8

with the following input.js:

var a = {
    "boolean": 1,
};

gives:

var a={"boolean":1};

i.e. needlessly quoting the property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment