Index: src/scopeinfo.cc |
diff --git a/src/scopeinfo.cc b/src/scopeinfo.cc |
index 1ed7e0b777c5896da788bb4bd4a96b8fb747ac99..14b8c4e85167fcdeac041fdf550dbebe6f6252aa 100644 |
--- a/src/scopeinfo.cc |
+++ b/src/scopeinfo.cc |
@@ -539,7 +539,7 @@ Handle<ModuleInfo> ModuleInfo::Create( |
int i = 0; |
for (Interface::Iterator it = interface->iterator(); |
!it.done(); it.Advance(), ++i) { |
- Variable* var = scope->LocalLookup(it.name()); |
+ Variable* var = scope->LookupLocal(it.name()); |
info->set_name(i, *it.name()); |
info->set_mode(i, var->mode()); |
ASSERT((var->mode() == MODULE) == (it.interface()->IsModule())); |