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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user