Bug 1773324 - Rename MainThreadErrorContext r=arai

"GenericErrorContext" hasn't been an appropriate name since 5d4105313417.

Differential Revision: https://phabricator.services.mozilla.com/D151667
This commit is contained in:
Bryan Thrall
2022-07-25 18:57:35 +00:00
parent b171165ccf
commit ea48d65b20
20 changed files with 51 additions and 49 deletions

View File

@@ -5315,7 +5315,7 @@ static bool ParseModule(JSContext* cx, unsigned argc, Value* vp) {
return false;
}
GeneralErrorContext ec(cx);
MainThreadErrorContext ec(cx);
RootedObject module(cx, frontend::CompileModule(cx, &ec, options, srcBuf));
if (!module) {
return false;
@@ -5759,7 +5759,7 @@ static bool DumpAST(JSContext* cx, const JS::ReadOnlyCompileOptions& options,
js::frontend::ParseGoal goal) {
using namespace js::frontend;
GeneralErrorContext ec(cx);
MainThreadErrorContext ec(cx);
Parser<FullParseHandler, Unit> parser(cx, &ec, options, units, length,
/* foldConstants = */ false,
compilationState,
@@ -5811,7 +5811,7 @@ template <typename Unit>
return false;
}
GeneralErrorContext ec(cx);
MainThreadErrorContext ec(cx);
UniquePtr<frontend::ExtensibleCompilationStencil> stencil;
if (goal == frontend::ParseGoal::Script) {
stencil = frontend::CompileGlobalScriptToExtensibleStencil(
@@ -6124,7 +6124,7 @@ static bool SyntaxParse(JSContext* cx, unsigned argc, Value* vp) {
return false;
}
GeneralErrorContext ec(cx);
MainThreadErrorContext ec(cx);
Parser<frontend::SyntaxParseHandler, char16_t> parser(
cx, &ec, options, chars, length,
/* foldConstants = */ false, compilationState,