Constellation/escodegen — pull request #77 by comp615 (2012-11-07 21:19:51+00:00)
Title: Fixed comments following simple expressions

The function to add comments after an expression was falsely assuming the existing result was an array. In cases where the statement was a simple (continue, break, ;, etc.) this would cause it to try String.push which doesn't work.

Fix just makes sure it's an array, and converts is if it's not already. There's a few places we could put the fix, but I figured I'd keep it simple as commenting is the only operation done before converting to SourceNode.

Enjoy!