Port Gecko's AutoJSAPI and remove default JS error reporter
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 38k
- Forks
- 3.8k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 465
Description
We need to move to a model where the JS engine is never in charge of deciding whether to report a pending exception or not. Instead, we need to have a stack-allocated type (AutoJSAPI) which understands when exceptions should be rethrown or reported, and explicitly invokes the correct error reporter with the stolen pending exception in the latter case.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the JavaScript engine's pending-exception handling and existing default error reporter, then read how Gecko's AutoJSAPI defines exception ownership. Done means a stack-allocated AutoJSAPI model controls whether pending exceptions are rethrown or reported and explicitly invokes the selected reporter with the stolen exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, rust
- Domain
- backend
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100