Index: src/scopeinfo.cc |
diff --git a/src/scopeinfo.cc b/src/scopeinfo.cc |
index 74aefdb95489e25609136dc2687a071ebecd3c12..10a493f5d6a13add7be2c55669aaf18b7d93bc70 100644 |
--- a/src/scopeinfo.cc |
+++ b/src/scopeinfo.cc |
@@ -560,8 +560,8 @@ Handle<ModuleInfo> ModuleInfo::Create(Isolate* isolate, |
int i = 0; |
for (ModuleDescriptor::Iterator it = descriptor->iterator(); !it.done(); |
it.Advance(), ++i) { |
- Variable* var = scope->LookupLocal(it.name()); |
- info->set_name(i, *(it.name()->string())); |
+ Variable* var = scope->LookupLocal(it.local_name()); |
+ info->set_name(i, *(it.export_name()->string())); |
info->set_mode(i, var->mode()); |
DCHECK(var->index() >= 0); |
info->set_index(i, var->index()); |