mishoo/UglifyJS2 — pull request #599 by rvanvelzen (2014-12-31 11:24:21+00:00)
Title: Fix #597

NaN and Infinity were replaced in the output generation, instead of
during compression. This could lead to results where `1/0` was inserted
without parens leading to invalid output.

The nodes are replaced in the compression step now, and the output
generation returns their regular names. This should not be a problem,
since they're already only constructed from the original name.