Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 74bd611646dae53385173b158fcaa597f28d27d3..14750b779ff2347cbaf8dab581f23e57d4636c3b 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1793,10 +1793,11 @@ Handle<Module> Factory::NewModule(Handle<SharedFunctionInfo> code) { |
Handle<Module> module = Handle<Module>::cast(NewStruct(MODULE_TYPE)); |
module->set_code(*code); |
module->set_exports(*exports); |
- module->set_flags(0); |
module->set_hash(isolate()->GenerateIdentityHash(Smi::kMaxValue)); |
module->set_module_namespace(isolate()->heap()->undefined_value()); |
module->set_requested_modules(*requested_modules); |
+ DCHECK(!module->instantiated()); |
+ DCHECK(!module->evaluated()); |
return module; |
} |