Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 26ab64552fc344fff7be569d3f43b365650c4d6f..0f66672fe46f15d3a7876ce08a916de527b933a1 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -2435,6 +2435,9 @@ 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 |
+// because ConvertDescriptorToField() which is called in "case CALLBACKS:" |
+// doesn't handle function prototypes correctly. |
MaybeObject* JSObject::SetLocalPropertyIgnoreAttributes( |
String* name, |
Object* value, |