Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Will the source mapping in Google Chrome push to Error.stack

Within Google Chrome, I was wondering if stack traces will, in the future, provide mapping support. Currently, using source maps, throwing an error will provide the line number link to my TypeScript files, however... When calling the Error.stack, it gives me the JavaScript lines and files.

Here's a reference picture: http://puu.sh/4DTOG.png

As you'll notice, the actual line the error is on is linked to the TypeScript file, but the stack trace links to the JavaScript files.

like image 962
Aedaeum Avatar asked Sep 30 '13 06:09

Aedaeum


2 Answers

This bug is fixed in chromium 42 :)

Cf https://code.google.com/p/chromium/issues/detail?id=357958 .

like image 29
Pascal Pixel Rigaux Avatar answered Oct 20 '22 02:10

Pascal Pixel Rigaux


There is no inherent technical limitation. However I don't think it is planned. For reasons like, when the stack trace contains code that is not TypeScript (or lacks a sourcemap) etc.

like image 70
basarat Avatar answered Oct 20 '22 03:10

basarat