Bug 1601698 - Replace GenerateFunctionCreationData with constructor r=caroline

Differential Revision: https://phabricator.services.mozilla.com/D57158
This commit is contained in:
Matthew Gaudet
2019-12-13 22:17:44 +00:00
parent 22ef5f05f9
commit 548a40d5a5
4 changed files with 22 additions and 23 deletions

View File

@@ -263,8 +263,8 @@ JS::Result<FunctionBox*> BinASTParserPerTokenizer<Tok>::buildFunctionBox(
RootedFunction fun(cx_);
if (pc_) {
Rooted<FunctionCreationData> fcd(
cx_, GenerateFunctionCreationData(atom, syntax, generatorKind,
functionAsyncKind));
cx_,
FunctionCreationData(atom, syntax, generatorKind, functionAsyncKind));
BINJS_TRY_VAR(fun, AllocNewFunction(cx_, fcd));
MOZ_ASSERT(fun->explicitName() == atom);
} else {