Index: src/ast/ast-numbering.cc |
diff --git a/src/ast/ast-numbering.cc b/src/ast/ast-numbering.cc |
index 6bfd514fbbb0f41909a735de588d124783eb2e73..6c2b696a5df1eea3d8d2001e762c28f759d792c7 100644 |
--- a/src/ast/ast-numbering.cc |
+++ b/src/ast/ast-numbering.cc |
@@ -580,6 +580,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); |