Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index a3d55921b67e679ad0f14aa39aac4836198a5306..adf03862052f02f0853816218504f633ae4b2df4 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -580,7 +580,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 save as is only invoked from Genesis. |
Mads Ager (chromium)
2011/02/10 10:26:43
save as -> safe because it
antonm
2011/02/10 14:18:33
Done.
|
+ SetLocalPropertyNoThrow( |
+ prototype, Factory::constructor_symbol(), function, DONT_ENUM); |
return function; |
} |