Bug 1623226 - Pass exception stack from AutoJSAPI::ReportException. r=baku

Differential Revision: https://phabricator.services.mozilla.com/D67791
This commit is contained in:
Tom Schuster
2020-03-30 22:45:14 +00:00
parent a858bef3bd
commit 2085ab38c6
3 changed files with 10 additions and 8 deletions

View File

@@ -496,7 +496,7 @@ void AutoJSAPI::ReportException() {
JS::Rooted<JSObject*> exnStack(cx());
js::ErrorReport jsReport(cx());
if (StealExceptionAndStack(&exn, &exnStack) &&
jsReport.init(cx(), exn, js::ErrorReport::WithSideEffects)) {
jsReport.init(cx(), exn, js::ErrorReport::WithSideEffects, exnStack)) {
if (mIsMainThread) {
RefPtr<xpc::ErrorReport> xpcReport = new xpc::ErrorReport();