Bug 1552316 - Don't rely on functionbox in initWithEnclosingParseContext and initFiledInitializer r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D31535
This commit is contained in:
@@ -275,7 +275,7 @@ JS::Result<FunctionBox*> BinASTParserPerTokenizer<Tok>::buildFunctionBox(
|
||||
|
||||
traceListHead_ = funbox;
|
||||
if (pc_) {
|
||||
funbox->initWithEnclosingParseContext(pc_, syntax);
|
||||
funbox->initWithEnclosingParseContext(pc_, fun,syntax);
|
||||
} else {
|
||||
funbox->initFromLazyFunction();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user