Bug 1773324 - Plumb ErrorContext parameter out to where main vs. helper thread is known r=arai

Differential Revision: https://phabricator.services.mozilla.com/D150643
This commit is contained in:
Bryan Thrall
2022-07-25 18:57:30 +00:00
parent 473d39f7e9
commit d39a4863e1
9 changed files with 77 additions and 55 deletions

View File

@@ -5812,8 +5812,9 @@ template <typename Unit>
UniquePtr<frontend::ExtensibleCompilationStencil> stencil;
if (goal == frontend::ParseGoal::Script) {
GeneralErrorContext ec(cx);
stencil = frontend::CompileGlobalScriptToExtensibleStencil(
cx, input.get(), srcBuf, ScopeKind::Global);
cx, &ec, input.get(), srcBuf, ScopeKind::Global);
} else {
stencil = frontend::ParseModuleToExtensibleStencil(cx, input.get(), srcBuf);
}