| Index: src/ast/ast-numbering.cc
|
| diff --git a/src/ast/ast-numbering.cc b/src/ast/ast-numbering.cc
|
| index 474eec675450d53c74584289cc442fd69b82cfeb..4c666d12f301bf6f71f5b8620552e05a5ecc12e5 100644
|
| --- a/src/ast/ast-numbering.cc
|
| +++ b/src/ast/ast-numbering.cc
|
| @@ -571,6 +571,7 @@ bool AstNumberingVisitor::Renumber(FunctionLiteral* node) {
|
| DisableOptimization(kFunctionWithIllegalRedeclaration);
|
| return Finish(node);
|
| }
|
| + if (scope->new_target_var()) DisableCrankshaft(kSuperReference);
|
| if (scope->calls_eval()) DisableOptimization(kFunctionCallsEval);
|
| if (scope->arguments() != NULL && !scope->arguments()->IsStackAllocated()) {
|
| DisableCrankshaft(kContextAllocatedArguments);
|
|
|