Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 902c43c1330e4c7af7f977c9a41e6d7a8733bc80..05a8618fce3d65fb30d8d561f46466b02477acc8 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -4525,6 +4525,12 @@ void HOptimizedGraphBuilder::SetUpScope(Scope* scope) { |
environment()->Bind(scope->arguments(), |
graph()->GetArgumentsObject()); |
} |
+ |
+ int rest_index; |
+ Variable* rest = scope->rest_parameter(&rest_index); |
+ if (rest) { |
+ return Bailout(kRestParameter); |
+ } |
} |