Expose js::ErrorReport in public JSAPI
Categories
(Core :: JavaScript Engine, task, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox78 | --- | fixed |
People
(Reporter: evilpies, Assigned: ptomato)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
js::ErrorReport is almost always required for error reporting code. PrintError, which we want to expose (Bug 1505129), basically requires it as well. Before we move this we should probably switch init to exclusively support JS::ExceptionStack.
Updated•5 years ago
|
| Assignee | ||
Comment 1•5 years ago
|
||
I've started working on this, how does JS::ErrorReportBuilder sound for a name?
| Assignee | ||
Comment 2•5 years ago
|
||
Renames it to JS::ErrorReportBuilder, since it is used to 'build' a
JSErrorReport object.
Depends on D73520
Updated•5 years ago
|
| Assignee | ||
Comment 3•5 years ago
|
||
Depends on D73521
| Assignee | ||
Comment 4•5 years ago
|
||
From the existing usage of the function, it seems like it should either
take a JSErrorReport with no toStringResult, or a JS::ErrorReportBuilder
where it can get both the JSErrorReport and the toStringResult.
Depends on D73522
Updated•5 years ago
|
Comment 6•5 years ago
|
||
Backed out for bustages on for bustages on testPrintError.cpp
Backout link: https://hg.mozilla.org/integration/autoland/rev/ea102a49618733aae60628d0f4304e8708274016
Log link: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=302143544&repo=autoland&lineNumber=7304
| Assignee | ||
Comment 7•5 years ago
|
||
No changes needed to these patches, but I've updated the patches from bug 1505129 and bug 1506323 to fix the build failures. Here's a retry of the jobs that failed: https://treeherder.mozilla.org/#/jobs?repo=try&revision=880f1222a163c8cbd31c1ebf88a25603755990b4
Comment 9•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/e7f7f6a60ceb
https://hg.mozilla.org/mozilla-central/rev/4291380d58ef
https://hg.mozilla.org/mozilla-central/rev/93a40cd62fa2
Description
•