jashkenas/coffee-script — Issue #1945: Compile 'throw msg' as "throw new Error(msg)" ?
Author: alexeypetrushin
Created: 2011-12-18 20:33:26+00:00
State: open

Errors thrown by `throw msg` statement doesn't have attached stack-trace, but it seems that the `throw new Error(msg)` works correctly and show stacktrace (at least in Firefox & Chrome).
So, maybe it worth to compile `throw` as `throw new Error`?