Index: src/json-stringifier.h |
diff --git a/src/json-stringifier.h b/src/json-stringifier.h |
index 5c0459eb1b0aa11bfc6c6125bac53db27aa2cdae..400ec94e6f30feb0461d873cb01d88dc6bcf88ba 100644 |
--- a/src/json-stringifier.h |
+++ b/src/json-stringifier.h |
@@ -337,13 +337,14 @@ |
case JS_VALUE_TYPE: |
if (deferred_string_key) SerializeDeferredKey(comma, key); |
return SerializeJSValue(Handle<JSValue>::cast(object)); |
+ case JS_FUNCTION_TYPE: |
+ return UNCHANGED; |
default: |
if (object->IsString()) { |
if (deferred_string_key) SerializeDeferredKey(comma, key); |
SerializeString(Handle<String>::cast(object)); |
return SUCCESS; |
} else if (object->IsJSObject()) { |
- if (object->IsCallable()) return UNCHANGED; |
// Go to slow path for global proxy and objects requiring access checks. |
if (object->IsAccessCheckNeeded() || object->IsJSGlobalProxy()) break; |
if (deferred_string_key) SerializeDeferredKey(comma, key); |