Burrito strips significant parentheses from inline ternaries #1

Closed
chrisdickinson opened this Issue Jul 20, 2011 · 0 comments

2 participants

@chrisdickinson

Here's an example comparing the output of burrito to the output of uglify.

It appears to be an issue with this line, in that the deparse-parse-deparse-parse sequence loses significant context about parentheses in the process. I've got a patch that fixes the behavior for ternaries (conditionals), but it's not as pretty as I'd like it to be. I'll submit a pull request so you can see what I've done.

@substack substack closed this in 20c3ecb Jul 23, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment