Index: src/objects-debug.cc |
diff --git a/src/objects-debug.cc b/src/objects-debug.cc |
index 179e92f21a3600054a335501344dd49b44ef47cb..362fa4074c199f55a3fbac6b414802a0289327dd 100644 |
--- a/src/objects-debug.cc |
+++ b/src/objects-debug.cc |
@@ -1015,8 +1015,13 @@ void Module::ModuleVerify() { |
CHECK(module_namespace()->IsUndefined(GetIsolate()) || |
module_namespace()->IsJSModuleNamespace()); |
+ if (module_namespace()->IsJSModuleNamespace()) { |
+ CHECK_EQ(JSModuleNamespace::cast(module_namespace())->module(), this); |
+ } |
+ |
+ CHECK_EQ(requested_modules()->length(), info()->module_requests()->length()); |
- // TODO(neis): Check more. |
+ CHECK_NE(hash(), 0); |
} |
void PrototypeInfo::PrototypeInfoVerify() { |