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:
Philip Chimento
2020-05-13 16:10:39 +00:00
parent c9c11c3b21
commit 5959a95549
23 changed files with 158 additions and 154 deletions

View File

@@ -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;
}