Index: src/ast/scopes.h |
diff --git a/src/ast/scopes.h b/src/ast/scopes.h |
index 1bec87f6636aeb1857d0217350b14c77adf907b9..0c10633e02fdc387cd7e238dafe9b98839b82744 100644 |
--- a/src/ast/scopes.h |
+++ b/src/ast/scopes.h |
@@ -371,9 +371,6 @@ |
// 'this' is bound, and what determines the function kind. |
DeclarationScope* GetReceiverScope(); |
- // Find the module scope, assuming there is one. |
- ModuleScope* GetModuleScope(); |
- |
// Analyze() must have been called once to create the ScopeInfo. |
Handle<ScopeInfo> scope_info() { |
DCHECK(!scope_info_.is_null()); |
@@ -680,9 +677,9 @@ |
} |
// Parameters. The left-most parameter has index 0. |
- // Only valid for function and module scopes. |
+ // Only valid for function scopes. |
Variable* parameter(int index) const { |
- DCHECK(is_function_scope() || is_module_scope()); |
+ DCHECK(is_function_scope()); |
return params_[index]; |
} |