Index: src/json-stringifier.h |
diff --git a/src/json-stringifier.h b/src/json-stringifier.h |
index 0d17b356abb0a1ac1a8447954db81f1386483083..4510c4b45b65b9b8c18079a46e901d69eb4a355f 100644 |
--- a/src/json-stringifier.h |
+++ b/src/json-stringifier.h |
@@ -360,6 +360,7 @@ Handle<Object> BasicJsonStringifier::ApplyToJsonFunction( |
PropertyAttributes attr; |
Handle<Object> fun = |
Object::GetProperty(object, object, &lookup, tojson_string_, &attr); |
+ if (fun.is_null()) return Handle<Object>::null(); |
if (!fun->IsJSFunction()) return object; |
// Call toJSON function. |