Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 26ab64552fc344fff7be569d3f43b365650c4d6f..d5742fc2e17f2d2c6aded65062458bbc3f7b0eb1 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -2435,6 +2435,8 @@ MaybeObject* JSObject::SetPropertyForResult(LookupResult* result, |
// callback setter removed. The two lines looking up the LookupResult |
// result are also added. If one of the functions is changed, the other |
// should be. |
+// Note that this method cannot be used to set the prototype of a function (it |
+// will silently fail). |
Rico
2011/07/25 13:05:42
I can't see where we actually silently fail in thi
Jakob Kummerow
2011/07/25 14:57:05
I've made the comment a bit more verbose.
|
MaybeObject* JSObject::SetLocalPropertyIgnoreAttributes( |
String* name, |
Object* value, |