Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index ca2d022f0ec50b161d3e9f8686ccba9854bc160e..b0626733deed1abda0a1fd0f58aaa57e35870fe9 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -1563,24 +1563,18 @@ void Parser::Declare(Declaration* declaration, bool resolve, bool* ok) { |
// For global const variables we bind the proxy to a variable. |
ASSERT(resolve); // should be set by all callers |
Variable::Kind kind = Variable::NORMAL; |
- var = new(zone()) Variable(declaration_scope, |
- name, |
- mode, |
- true, |
- kind, |
- kNeedsInitialization); |
+ var = new(zone()) Variable( |
+ declaration_scope, name, mode, true, kind, |
+ kNeedsInitialization, proxy->interface()); |
} else if (declaration_scope->is_eval_scope() && |
declaration_scope->is_classic_mode()) { |
// For variable declarations in a non-strict eval scope the proxy is bound |
// to a lookup variable to force a dynamic declaration using the |
// DeclareContextSlot runtime function. |
Variable::Kind kind = Variable::NORMAL; |
- var = new(zone()) Variable(declaration_scope, |
- name, |
- mode, |
- true, |
- kind, |
- declaration->initialization()); |
+ var = new(zone()) Variable( |
+ declaration_scope, name, mode, true, kind, |
+ declaration->initialization(), proxy->interface()); |
var->AllocateTo(Variable::LOOKUP, -1); |
resolve = true; |
} |