Oops, I just noticed this old pull request is almost identical to mine.  You could add a test similar to the one in that change.

https://github.com/davidbau/UglifyJS2/commit/a21f31d46fb903fe1ce05f391dad299eb2f60b23