| Index: src/ast/scopes.h
|
| diff --git a/src/ast/scopes.h b/src/ast/scopes.h
|
| index 289158e9be1bbc03d983ad6e76243f860b631ab1..f4d7ba2a3a8dda1b76d4ac871c79ec0a28038855 100644
|
| --- a/src/ast/scopes.h
|
| +++ b/src/ast/scopes.h
|
| @@ -321,6 +321,9 @@ class Scope: public ZoneObject {
|
| bool is_arrow_scope() const {
|
| return is_function_scope() && IsArrowFunction(function_kind_);
|
| }
|
| + bool is_toplevel_scope() const {
|
| + return is_script_scope() || is_eval_scope() || is_module_scope();
|
| + }
|
| bool is_declaration_scope() const { return is_declaration_scope_; }
|
|
|
| void set_is_declaration_scope() { is_declaration_scope_ = true; }
|
|
|