Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index f9738cf399226f1112617c3e847f2517440c839b..96c757a373e9c11013ccbf943c6121de97934cad 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -585,7 +585,9 @@ Handle<JSFunction> Factory::NewFunctionWithPrototype(Handle<String> name, |
// Set function.prototype and give the prototype a constructor |
// property that refers to the function. |
SetPrototypeProperty(function, prototype); |
- SetProperty(prototype, Factory::constructor_symbol(), function, DONT_ENUM); |
+ // Currently safe because it is only invoked from Genesis. |
+ SetLocalPropertyNoThrow( |
+ prototype, Factory::constructor_symbol(), function, DONT_ENUM); |
return function; |
} |