Index: src/ast/ast-numbering.cc |
diff --git a/src/ast/ast-numbering.cc b/src/ast/ast-numbering.cc |
index 1b9905a2c6c1d0d23076e965f2983a0d4f6b07d6..f891bd72366eef075df45dfbc2f02eff0e5cb5ce 100644 |
--- a/src/ast/ast-numbering.cc |
+++ b/src/ast/ast-numbering.cc |
@@ -575,8 +575,7 @@ bool AstNumberingVisitor::Renumber(FunctionLiteral* node) { |
DisableCrankshaft(kContextAllocatedArguments); |
} |
- int rest_index; |
- if (scope->rest_parameter(&rest_index)) { |
+ if (scope->rest_parameter() != nullptr) { |
DisableCrankshaft(kRestParameter); |
} |