Files
coffeescript/test
Demian Ferreiro 3f9cdcf1fa Change how error messages are shown
Instead of throwing the syntax errors with their source file location and needing to then catch them and call a `prettyErrorMessage` function in order to get the formatted error message, now syntax errors know how to pretty-print themselves (their `toString` method gets overridden).

An intermediate `catch` & re-`throw` is needed at the level of `CoffeeScript.compile` and friends. But the benefit of this approach is that now libraries that use the `CoffeeScript` object directly don't need to bother catching the possible compilation errors and calling a special function in order to get the nice error messages; they can just print the error itself (or let it bubble up) and the error will know how to pretty-print itself.
2013-07-31 08:27:49 -03:00
..
2011-04-23 13:35:15 -04:00
2013-02-01 22:07:19 +11:00
2011-04-23 13:35:15 -04:00
2013-05-26 00:29:26 +02:00
2013-05-26 00:29:26 +02:00
2011-12-24 07:04:34 -05:00
2011-06-02 01:49:28 -04:00
2012-05-12 06:34:12 +01:00
2013-03-18 21:50:40 +08:00
2011-04-23 13:35:15 -04:00
2013-03-21 09:04:23 +08:00