Repository navigation
Add compatibility for source maps with v8's stack frame format - #8762
Merged
Merged
Conversation
kripken
requested changes
Jun 10, 2019
kripken
reviewed
Jun 11, 2019
kripken
approved these changes
Jun 13, 2019
kripken
left a comment
Member
There was a problem hiding this comment.
lgtm with that last comment resolved
| // since functions defined in the module are numbered after all imports | ||
| var count = unsignedLEB128(); | ||
|
|
||
| while (count --> 0) { |
Member
There was a problem hiding this comment.
This --> notation seems surprising... it's (count--) > 0, correct? might be clearer as count-- > 0 so it doesn't look like an arrow.
belraquib
pushed a commit
to belraquib/emscripten
that referenced
this pull request
Dec 23, 2020
…ipten-core#8762) This change allows source maps to work on v8 builds with v8 bug https://crbug.com/v8/9172. This change also makes `__builtin_return_address` return consistent results on all engines.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change also makes
__builtin_return_addressreturn consistent results on all engines.Consider
null-read.c:Let's compile it with UBSan, enable debug info, turn on stack trace printing by changing the environment:
Stack traces display properly on all major engines with original file and line number: