Backed out 2 changesets (bug 1569315) on request from mgaudet on a CLOSED TREE
Backed out changeset eb0b2f561461 (bug 1569315) Backed out changeset 5d553fb84ecb (bug 1569315)
This commit is contained in:
@@ -261,15 +261,10 @@ JS::Result<FunctionBox*> BinASTParserPerTokenizer<Tok>::buildFunctionBox(
|
||||
|
||||
// Allocate the function before walking down the tree.
|
||||
RootedFunction fun(cx_);
|
||||
if (pc_) {
|
||||
Rooted<FunctionCreationData> fcd(
|
||||
cx_, GenerateFunctionCreationData(atom, syntax, generatorKind,
|
||||
functionAsyncKind));
|
||||
BINJS_TRY_VAR(fun, AllocNewFunction(cx_, fcd));
|
||||
MOZ_ASSERT(fun->explicitName() == atom);
|
||||
} else {
|
||||
BINJS_TRY_VAR(fun, lazyScript_->functionNonDelazifying());
|
||||
}
|
||||
BINJS_TRY_VAR(fun, !pc_ ? lazyScript_->functionNonDelazifying()
|
||||
: AllocNewFunction(cx_, atom, syntax, generatorKind,
|
||||
functionAsyncKind));
|
||||
MOZ_ASSERT_IF(pc_, fun->explicitName() == atom);
|
||||
|
||||
mozilla::Maybe<Directives> directives;
|
||||
if (pc_) {
|
||||
|
||||
Reference in New Issue
Block a user