Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index a1c3c6d6a1d1493a56beed7a0c719beb9a80bde6..f2ab2af9c61ab3d0879aee0953418a89605b90dd 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1413,6 +1413,7 @@ Handle<JSFunction> Factory::NewFunction(Handle<Map> map, |
map.is_identical_to(isolate()->strict_function_without_prototype_map()) || |
// TODO(titzer): wasm_function_map() could be undefined here. ugly. |
(*map == context->get(Context::WASM_FUNCTION_MAP_INDEX)) || |
+ (*map == context->get(Context::NATIVE_FUNCTION_MAP_INDEX)) || |
map.is_identical_to(isolate()->proxy_function_map())); |
return NewFunction(map, info, context); |
} |