Index: src/scopes.h |
diff --git a/src/scopes.h b/src/scopes.h |
index 2cc8b3e9569bf80bc11d49dfdda733d134ef7f73..588e55ea14507ee7afa2278c52d7138c13de670d 100644 |
--- a/src/scopes.h |
+++ b/src/scopes.h |
@@ -383,6 +383,10 @@ class Scope: public ZoneObject { |
return rest_parameter_; |
} |
+ bool has_rest_parameter() const { |
+ return rest_index_ >= 0; |
+ } |
+ |
bool is_simple_parameter_list() const { |
DCHECK(is_function_scope()); |
if (rest_index_ >= 0) return false; |