Bug 1629293 - Expose js::ErrorReport in public API. r=evilpie
Renames it to JS::ErrorReportBuilder, since it is used to 'build' a JSErrorReport object. Differential Revision: https://phabricator.services.mozilla.com/D73521
This commit is contained in:
@@ -2250,8 +2250,8 @@ void ScriptExecutorRunnable::LogExceptionToConsole(
|
||||
MOZ_ASSERT(!JS_IsExceptionPending(aCx));
|
||||
MOZ_ASSERT(!mScriptLoader.mRv.Failed());
|
||||
|
||||
js::ErrorReport report(aCx);
|
||||
if (!report.init(aCx, exn, js::ErrorReport::WithSideEffects)) {
|
||||
JS::ErrorReportBuilder report(aCx);
|
||||
if (!report.init(aCx, exn, JS::ErrorReportBuilder::WithSideEffects)) {
|
||||
JS_ClearPendingException(aCx);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user