Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index fece9a09c91779c6f360d842a7c2b3b9a7a51791..d1c402d27237abfa7090bf9e9a8ea10e62cb6ecb 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -874,14 +874,7 @@ Handle<JSFunction> Factory::NewFunctionWithPrototype(Handle<String> name, |
initial_map->set_constructor(*function); |
} |
- // Set function.prototype and give the prototype a constructor |
- // property that refers to the function. |
SetPrototypeProperty(function, prototype); |
- // Currently safe because it is only invoked from Genesis. |
- CHECK_NOT_EMPTY_HANDLE(isolate(), |
- JSObject::SetLocalPropertyIgnoreAttributes( |
- prototype, constructor_string(), |
- function, DONT_ENUM)); |
return function; |
} |