tchak/barber — pull request #2 by elucid (2012-12-11 17:04:21+00:00)
Title: Use regexp replace instead of context.eval for sanitizing multiline escapes in JS source

This avoids the exception fallthrough which prevented barber from being used with Rhino.

I've made `Precompiler#sanitize` public so that it can be tested and also modified the coffeescript multiline test to assert on the output of `Precompiler#sanitize` instead of checking whether a `Precompiler#compile` fails.

If there are scenarios that aren't handled by this please send me data that I can use to add new test cases.