Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index e72dc7c5fdb3f832c76440affd7545bbc0035ea2..c7025263ad83beb9c86c196cc9b14f0d36d5c471 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -725,9 +725,14 @@ void FullCodeGenerator::VisitDeclarations( |
AstVisitor::VisitDeclarations(declarations); |
if (scope_->num_modules() != 0) { |
+ // TODO(ES6): This step, which creates module instance objects, |
+ // can probably be delayed until an "import *" declaration |
+ // reifies a module instance. Until imports are implemented, |
+ // we skip it altogether. |
+ // |
// Initialize modules from descriptor array. |
- DCHECK(module_index_ == modules_->length()); |
- DeclareModules(modules_); |
+ // DCHECK(module_index_ == modules_->length()); |
+ // DeclareModules(modules_); |
modules_ = saved_modules; |
module_index_ = saved_module_index; |
} |