Closed 0rland closed 8 years ago
This annoys me too. I'm waiting for it to be fixed in the CoffeeScript trunk and then will merge those changes over.
As I understand, it's already ok in original CoffeeScript 1.6.3, isn't it? Could you please look at diff. of versions of coffee-script.js files.
This change fixes it: https://github.com/jashkenas/coffee-script/commit/7f1088054c91f5ab3bf1ea1098b6ebffaa29a5a9
I realized I could just merge new coffeescript changes to iced. Please see the pull request. It also includes a change to sourcemap syntax.
It looks like line position of exceptions are mapped correctly for main module only. For required sources it uses line number of generated JS code.