Backed out 4 changesets (bug 1553482) for causing build bustages in BinASTTokenReaderBase.h CLOSED TREE

Backed out changeset dea9d20a1162 (bug 1553482)
Backed out changeset f6e6533c5db2 (bug 1553482)
Backed out changeset 82f5e463bcb5 (bug 1553482)
Backed out changeset 9db8b5eba797 (bug 1553482)
This commit is contained in:
Noemi Erli
2019-05-24 13:05:09 +03:00
parent 10a773a4ca
commit 32ca015d5e
11 changed files with 446 additions and 3092 deletions

View File

@@ -133,7 +133,7 @@ JS::Result<ParseNode*> BinASTParserPerTokenizer<Tok>::parseAux(
MOZ_TRY(tokenizer_->readHeader());
ParseNode* result(nullptr);
const Context topContext((RootContext()));
const Context topContext(Context::topLevel());
MOZ_TRY_VAR(result, asFinalParser()->parseProgram(topContext));
mozilla::Maybe<GlobalScope::Data*> bindings =
@@ -196,7 +196,7 @@ JS::Result<FunctionNode*> BinASTParserPerTokenizer<Tok>::parseLazyFunction(
// Inject a toplevel context (i.e. no parent) to parse the lazy content.
// In the future, we may move this to a more specific context.
const Context context((RootContext()));
const Context context(Context::topLevel());
MOZ_TRY(
(asFinalParser()->*parseFunc)(func->nargs(), &params, &tmpBody, context));