3 ms·
To make the line numbers in JS error messages more informative, you could make the line numbers coincide. i.e. by minifying the JS where coffee:js lines are 1:
by 10ren 17y ago
To make the line numbers in JS error messages more informative, you could make the line numbers coincide.
i.e. by minifying the JS where coffee:js lines are 1:m and adding blanks when m:1, instead of always pretty-printing.
It's a trade-off of js-readability for error-readability - a hard call, but very cool to be able to go directly to the line in question.
- jashkenas 17y agoAh yes, we have a ticket for this. http://github.com/jashkenas/coffee-script/issues/issue/132 http://github.com/jashkenas/coffee-script/issues/issue/132 Now that there's the self-compiler that can be run without ever saving the compiled JavaScript as a file, this becomes far more important.