Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Doesn't seem to work for coffeescript #3

wmertens opened this Issue Jun 18, 2013 · 4 comments


None yet
2 participants

better-assert tries to load the non-existent javascript file which it got from callsite instead of the coffeescript file which even has the correct line numbers thanks to source maps.

@tj tj closed this Jun 18, 2013


tj commented Jun 18, 2013


wmertens commented Jul 1, 2013

Ok, I get that you don't like CoffeeScript, but perhaps you could give me some hints on what to change so I could make it work in a fork or something?

Basically callsite doesn't have to support CS per se, but just source maps in general. Is this something that is feasible?


tj commented Jul 1, 2013

should be doable with source maps

wmertens commented Jul 1, 2013

Ah. I dug around a bit and found https://github.com/michaelficarra/CoffeeScriptRedux/blob/master/src/run.coffee which is several times longer than callsite itself ;) Written in coffeescript but should be broadly applicable to any source maps.

A bit too involved for me to hack on right now. Commenting here in case anyone else feels up to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment