Files
coffeescript/lib/coffee-script
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
..
2013-07-30 01:06:41 -03:00
2013-06-02 09:37:45 +04:00
2013-07-31 08:27:49 -03:00
2013-07-31 08:27:49 -03:00
2013-06-02 09:37:45 +04:00
2013-06-21 02:47:29 +02:00
2013-06-02 09:37:45 +04:00
2013-07-31 08:27:49 -03:00
2013-06-02 09:37:45 +04:00
2013-06-02 09:37:45 +04:00
2013-06-02 09:37:45 +04:00