Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCreate a safe, straightforward API to capture JS stacks #14987
Comments
|
The idea here is that |
|
It would make the most sense to build this in the rust-mozjs repository, rather than in servo itself. |
|
Hi, I will work on this. I have already read the code around and this seems like quite easy task. |
|
@mrowqa Great! Please ask questions if anything is unclear! |
Safe, straightforward API for capturing JS stacks PR for servo/servo#14987 Can someone take a look if it goes in the right direction and also look through my comments? Maybe, I have left some "stupid questions", but I wanted to post my changes and get feedback before weekend - I work from Europe, so here is middle of the night. CC: @jdm <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-mozjs/381) <!-- Reviewable:end -->
|
@jdm Is that all or do we want something more? And thank you for the help :) |
|
Good enough for now! |
https://github.com/servo/mozjs/blob/3f38435122538e4b66f88878302f81331c0b6a44/mozjs/js/src/jsapi.h#L5895-L6039 looks like it gives us the building blocks we need in C++. We should make it as easy to capture JS stacks as possible and use them to help us debug problems with web compatibility.