Index: src/ast/ast-numbering.cc |
diff --git a/src/ast/ast-numbering.cc b/src/ast/ast-numbering.cc |
index 45f05f38e625053645652fe0b8bd76525f2e18c7..6bfd514fbbb0f41909a735de588d124783eb2e73 100644 |
--- a/src/ast/ast-numbering.cc |
+++ b/src/ast/ast-numbering.cc |
@@ -585,6 +585,11 @@ bool AstNumberingVisitor::Renumber(FunctionLiteral* node) { |
DisableCrankshaft(kContextAllocatedArguments); |
} |
+ int rest_index; |
+ if (scope->rest_parameter(&rest_index)) { |
+ DisableCrankshaft(kRestParameter); |
+ } |
+ |
VisitDeclarations(scope->declarations()); |
VisitStatements(node->body()); |