bevry / cson

CoffeeScript-Object-Notation. Same as JSON but for CoffeeScript objects.
Other
1.34k stars 55 forks source link

source map support is broken the first time cson.requireFile is called #70

Closed vincentcr closed 5 years ago

vincentcr commented 8 years ago

using 3.0.2

if i throw an error before calling cson.requireFile, i get the source-mapped stack trace. if i throw an error after calling cson.requireFile, i see the compiled stack trace without source mappings.

balupton commented 7 years ago

Could you provide a complete test case / reproduction instructions and results for the two cases above

balupton commented 5 years ago

This seems like it just needs better error handling which would be accomplished by a promise rewrite #88

lenovouser commented 7 months ago

I am also experiencing this, is there something I can do on my side to fix this temporarily in my project?

balupton commented 7 months ago

If you are just using .cson then try using the underlying safe cson parser by groupon directly