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