Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index c152ee8b57624bea639da4bfedcde96188809681..8d147a14721047d5fe0eb891d3c62552c4dc148e 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -3482,6 +3482,7 @@ MaybeObject* Heap::ReinitializeJSReceiver( |
// Functions require some minimal initialization. |
if (type == JS_FUNCTION_TYPE) { |
+ map->set_function_with_prototype(true); |
String* name; |
MaybeObject* maybe_name = LookupAsciiSymbol("<freezing call trap>"); |
if (!maybe_name->To<String>(&name)) return maybe_name; |