Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index d1e94c87a7ebca0e51b01d192c10f097b8775284..9ef8af411cbd158226f9097359ac235dcf849b54 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -84,11 +84,6 @@ VariableProxy::VariableProxy(Zone* zone, const AstRawString* name, bool is_this, |
void VariableProxy::BindTo(Variable* var) { |
DCHECK(!FLAG_harmony_modules || interface_->IsUnified(var->interface())); |
DCHECK((is_this() && var->is_this()) || raw_name() == var->raw_name()); |
- // Ideally CONST-ness should match. However, this is very hard to achieve |
- // because we don't know the exact semantics of conflicting (const and |
- // non-const) multiple variable declarations, const vars introduced via |
- // eval() etc. Const-ness and variable declarations are a complete mess |
- // in JS. Sigh... |
set_var(var); |
set_is_resolved(); |
var->set_is_used(); |