Index: src/ast/scopes.h |
diff --git a/src/ast/scopes.h b/src/ast/scopes.h |
index 8a84664c18ec44d657ebc85db9208c98d3b66c5f..1aa6a3988a72c644ba4495b93e7b8cdf92edbe2f 100644 |
--- a/src/ast/scopes.h |
+++ b/src/ast/scopes.h |
@@ -331,6 +331,9 @@ class Scope: public ZoneObject { |
// The scope immediately surrounding this scope, or NULL. |
Scope* outer_scope() const { return outer_scope_; } |
+ // The innermost outer scope that needs a context or nullptr. |
+ Scope* GetOuterScopeWithContext() const; |
+ |
const AstRawString* catch_variable_name() const { |
DCHECK(is_catch_scope()); |
DCHECK_EQ(1, num_var()); |