[parsing] Clarify a comment.
R=adamk@chromium.org BUG= Review-Url: https://codereview.chromium.org/2645503002 Cr-Commit-Position: refs/heads/master@{#42472}
This commit is contained in:
parent
656880510b
commit
538f848ddf
@ -227,9 +227,10 @@ void Parser::PatternRewriter::VisitVariableProxy(VariableProxy* pattern) {
|
||||
if (var_init_scope->is_script_scope() ||
|
||||
var_init_scope->is_module_scope()) {
|
||||
// We have to pessimistically assume that top-level variables will be
|
||||
// assigned. This is because there may be lazily parsed top-level
|
||||
// functions, which, for efficiency, we preparse without variable
|
||||
// tracking.
|
||||
// assigned. This is because they might be accessed by a lazily parsed
|
||||
// top-level function, which, for efficiency, we preparse without
|
||||
// variable tracking. In the case of a script (not a module), they
|
||||
// might also get accessed by another script.
|
||||
proxy->set_is_assigned();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user