Commit 538f848d authored by neis's avatar neis Committed by Commit bot

[parsing] Clarify a comment.

R=adamk@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/2645503002
Cr-Commit-Position: refs/heads/master@{#42472}
parent 65688051
......@@ -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();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment