Index: src/ast/ast-numbering.cc |
diff --git a/src/ast/ast-numbering.cc b/src/ast/ast-numbering.cc |
index e1b11f655a844f2f92f9557db9c85bd7215a8e4d..e0069f81ac8d8137070379f7a525f2515d04da8a 100644 |
--- a/src/ast/ast-numbering.cc |
+++ b/src/ast/ast-numbering.cc |
@@ -600,6 +600,10 @@ bool AstNumberingVisitor::Renumber(FunctionLiteral* node) { |
} |
} |
+ if (IsClassConstructor(node->kind())) { |
+ DisableCrankshaft(kClassConstructorFunction); |
+ } |
+ |
VisitDeclarations(scope->declarations()); |
VisitStatements(node->body()); |