Bug 1623226 - Pass exception stack from AutoJSAPI::ReportException. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D67791
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user