Bug 1558604 - Keep interpreted and interpretedLazy on FunctionBox r=jorendorff

Differential Revision: https://phabricator.services.mozilla.com/D34587
This commit is contained in:
Matthew Gaudet
2019-07-23 17:49:31 +00:00
parent 7247a60921
commit f7aef0db6b
6 changed files with 29 additions and 7 deletions

View File

@@ -396,7 +396,7 @@ JS::Result<Ok> BinASTParserPerTokenizer<Tok>::finishLazyFunction(
lazy->setStrict();
}
MOZ_ASSERT(lazy->isBinAST());
fun->initLazyScript(lazy);
funbox->initLazyScript(lazy);
return Ok();
}