Index: src/ast/scopes.h |
diff --git a/src/ast/scopes.h b/src/ast/scopes.h |
index 2df27c04188572b92f52c23567fd2e2aac68c31d..a7a61bfff82e11f1b77a9d0389a1ac744517cf9f 100644 |
--- a/src/ast/scopes.h |
+++ b/src/ast/scopes.h |
@@ -637,15 +637,14 @@ class DeclarationScope : public Scope { |
void DeclareArguments(AstValueFactory* ast_value_factory); |
void DeclareDefaultFunctionVariables(AstValueFactory* ast_value_factory); |
- // This lookup corresponds to a lookup in the "intermediate" scope sitting |
- // between this scope and the outer scope. (ECMA-262, 3rd., requires that |
- // the name of named function literal is kept in an intermediate scope |
- // in between this scope and the next outer scope.) |
- Variable* LookupFunctionVar(const AstRawString* name); |
- |
// Declare the function variable for a function literal. This variable |
// is in an intermediate scope between this function scope and the the |
// outer scope. Only possible for function scopes; at most one variable. |
+ // |
+ // This function needs to be called after all other variables have been |
+ // declared in the scope. It will add a variable for {name} to {variables_}; |
+ // either the function variable itself, or a non-local in case the function |
+ // calls sloppy eval. |
Variable* DeclareFunctionVar(const AstRawString* name); |
// Declare a parameter in this scope. When there are duplicated |