Skip to content

Use source maps to make exception backtraces more useful. - #11

Open
dougo wants to merge 5 commits into
aostrega:masterfrom
dougo:exception-source-maps
Open

Use source maps to make exception backtraces more useful.#11
dougo wants to merge 5 commits into
aostrega:masterfrom
dougo:exception-source-maps

Conversation

@dougo

@dougo dougo commented Jul 4, 2016

Copy link
Copy Markdown
Contributor

(This pull request includes the commit from #10, so you may want to merge that first.)

I got tired of seeing useless backtraces from tests that raise exceptions, so I decided to use the sourcemaps provided by Opal::Server to filter backtraces, translating locations in generated Javascript to source locations in the original Ruby where possible. It's a little hacky so please feel free to suggest improvements!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant