Index: src/parsing/pattern-rewriter.cc |
diff --git a/src/parsing/pattern-rewriter.cc b/src/parsing/pattern-rewriter.cc |
index 247f3f57c6cce3148c1013f4c67dc8cdeb550357..eb4a3ebb2c8e716aadc3cf573386e37ee8e99f05 100644 |
--- a/src/parsing/pattern-rewriter.cc |
+++ b/src/parsing/pattern-rewriter.cc |
@@ -139,13 +139,6 @@ void Parser::PatternRewriter::VisitVariableProxy(VariableProxy* pattern) { |
// which the variable or constant is declared. Only function variables have |
// an initial value in the declaration (because they are initialized upon |
// entering the function). |
- // |
- // If we have a legacy const declaration, in an inner scope, the proxy |
- // is always bound to the declared variable (independent of possibly |
- // surrounding 'with' statements). |
- // For let/const declarations in harmony mode, we can also immediately |
- // pre-resolve the proxy because it resides in the same scope as the |
- // declaration. |
const AstRawString* name = pattern->raw_name(); |
VariableProxy* proxy = descriptor_->scope->NewUnresolved( |
factory(), name, parser_->scanner()->location().beg_pos, |