Index: src/objects-debug.cc |
diff --git a/src/objects-debug.cc b/src/objects-debug.cc |
index be96592962458f5125f88d674ae42f57745969a2..c2f64d482e07d3b3e73688ef3be6fc3b12d473f3 100644 |
--- a/src/objects-debug.cc |
+++ b/src/objects-debug.cc |
@@ -499,7 +499,8 @@ void JSFunction::JSFunctionVerify() { |
VerifyObjectField(kPrototypeOrInitialMapOffset); |
VerifyObjectField(kNextFunctionLinkOffset); |
CHECK(code()->IsCode()); |
- CHECK(next_function_link()->IsUndefined() || |
+ CHECK(next_function_link() == NULL || |
+ next_function_link()->IsUndefined() || |
next_function_link()->IsJSFunction()); |
} |