| changeset 260 | 05de34f712fe |
| parent 259 | 99ab8b19f0b9 |
| child 261 | 219b49bf4a03 |
1.1 --- a/src/compiler/NameBinding.cpp Sat Jan 12 16:26:09 2013 -0800 1.2 +++ b/src/compiler/NameBinding.cpp Sat Jan 12 16:35:26 2013 -0800 1.3 @@ -897,7 +897,9 @@ 1.4 assert(false); 1.5 } else { 1.6 Local<Module> module(zone_, Module::cast(importable)); 1.7 - if (!module->globals()) 1.8 + 1.9 + // Always grab from the translation unit if we can, for now. 1.10 + if (module->translationUnit()) 1.11 importFromTranslationUnit(node, module->translationUnit()); 1.12 else 1.13 assert(false);