Chromium Code Reviews| Index: src/scopes.h |
| diff --git a/src/scopes.h b/src/scopes.h |
| index 412ad853f6208a1e94e42c1973f4d759840e478a..532220e7671b47d7a3f198e28543e4eb12ff7997 100644 |
| --- a/src/scopes.h |
| +++ b/src/scopes.h |
| @@ -381,6 +381,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; |