Index: src/ast/scopes.h |
diff --git a/src/ast/scopes.h b/src/ast/scopes.h |
index 05df42c198a84b5ddb255285cef8f13953bf09ef..ef6508de2a0397fa85ccc512a6182114e3531818 100644 |
--- a/src/ast/scopes.h |
+++ b/src/ast/scopes.h |
@@ -411,8 +411,15 @@ class Scope: public ZoneObject { |
// 'this' is bound, and what determines the function kind. |
DeclarationScope* GetReceiverScope(); |
+ // Creates a scope info if it doesn't already exist. |
Handle<ScopeInfo> GetScopeInfo(Isolate* isolate); |
+ // GetScopeInfo() must have been called once to create the ScopeInfo. |
+ Handle<ScopeInfo> scope_info() { |
+ DCHECK(!scope_info_.is_null()); |
+ return scope_info_; |
+ } |
+ |
// --------------------------------------------------------------------------- |
// Strict mode support. |
bool IsDeclared(const AstRawString* name) { |