Closed Bug 1629293 Opened 5 years ago Closed 5 years ago

Expose js::ErrorReport in public JSAPI

Categories

(Core :: JavaScript Engine, task, P2)

task

Tracking

()

RESOLVED FIXED
mozilla78
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.

Priority: -- → P2

I've started working on this, how does JS::ErrorReportBuilder sound for a name?

Renames it to JS::ErrorReportBuilder, since it is used to 'build' a
JSErrorReport object.

Depends on D73520

Assignee: nobody → philip.chimento
Status: NEW → ASSIGNED

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

Severity: -- → N/A
Pushed by ncsoregi@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/72a63e290177 Expose js::ErrorReport in public API. r=evilpie https://hg.mozilla.org/integration/autoland/rev/452e9ab721bd Make JS::ErrorReportBuilder::init exclusively support JS::ExceptionStack. r=evilpie,mccr8 https://hg.mozilla.org/integration/autoland/rev/ad1ccad76686 Make JS::PrintError take either JSErrorReport or JS::ErrorReportBuilder. r=evilpie

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

Flags: needinfo?(philip.chimento)
Pushed by btara@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e7f7f6a60ceb Expose js::ErrorReport in public API. r=evilpie https://hg.mozilla.org/integration/autoland/rev/4291380d58ef Make JS::ErrorReportBuilder::init exclusively support JS::ExceptionStack. r=evilpie,mccr8 https://hg.mozilla.org/integration/autoland/rev/93a40cd62fa2 Make JS::PrintError take either JSErrorReport or JS::ErrorReportBuilder. r=evilpie
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: