Index: src/objects-debug.cc |
diff --git a/src/objects-debug.cc b/src/objects-debug.cc |
index e014038933a659d9f0e420521aa11e02a45dc408..58525b854a6e4461d40a5e68bd515b31d4df6ca0 100644 |
--- a/src/objects-debug.cc |
+++ b/src/objects-debug.cc |
@@ -901,6 +901,8 @@ void Box::BoxVerify() { |
void Module::ModuleVerify() { |
CHECK(IsModule()); |
+ CHECK(code()->IsSharedFunctionInfo() || code()->IsJSFunction()); |
+ code()->ObjectVerify(); |
exports()->ObjectVerify(); |
// TODO(neis): Check more. |
} |