stefanpenner/es3-safe-recast — pull request #1 by rjackson (2014-05-27 05:14:06+00:00)
Title: Allow casting without input containing catch/finally.

The RegExp that was used as a quick check filter was only looking for `catch` and `finally`. This meant that it would not recast any of the other identifiers if `catch`/`finally` did not also exist in the output.

Changes:

* Added tests for the individual literals (in both object literal and object member formats).
* Build the RegExp dynamically based on the actual literals being matched. This could have been done inline, but I believe that we will likely have other scenarios to check, and will likely need to have the ability to construct more complicationed RegExps anyways.