Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index bbe1ed8554a8c2e2afbc23114c20e42910d1b193..47f965be7daf1555eb25b1cd1f34971626a9d705 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1384,6 +1384,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); |
} |