Bug 1569315 - Create FunctionFlags class to allow recycling function flag queries elsewhere r=tcampbell

Differential Revision: https://phabricator.services.mozilla.com/D39773
This commit is contained in:
Matthew Gaudet
2019-07-31 19:30:27 +00:00
parent 3e710f0359
commit b16a11fff7
31 changed files with 408 additions and 270 deletions

View File

@@ -166,7 +166,7 @@ JS::Result<FunctionNode*> BinASTParserPerTokenizer<Tok>::parseLazyFunction(
// For now, only function declarations and function expression are supported.
RootedFunction func(cx_, lazyScript_->functionNonDelazifying());
bool isExpr = func->isLambda();
MOZ_ASSERT(func->kind() == JSFunction::FunctionKind::NormalFunction);
MOZ_ASSERT(func->kind() == FunctionFlags::FunctionKind::NormalFunction);
// Poison the tokenizer when we leave to ensure that it's not used again by
// accident.