Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 47b2c5adc6286d6d5b5f4ad963a1c3d8fc661305..84cc00d2800468e3c6e125c36b586285514eaecc 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1923,7 +1923,6 @@ |
Handle<Map> map = NewMap(JS_FUNCTION_PROXY_TYPE, JSFunctionProxy::kSize); |
Map::SetPrototype(map, prototype); |
map->set_is_callable(); |
- map->set_is_constructor(construct_trap->IsCallable()); |
// Allocate the proxy object. |
Handle<JSFunctionProxy> result = New<JSFunctionProxy>(map, NEW_SPACE); |
@@ -1985,7 +1984,7 @@ |
// Functions require some minimal initialization. |
if (type == JS_FUNCTION_TYPE) { |
- map->set_is_constructor(true); |
+ map->set_function_with_prototype(true); |
map->set_is_callable(); |
Handle<JSFunction> js_function = Handle<JSFunction>::cast(proxy); |
InitializeFunction(js_function, shared.ToHandleChecked(), context); |