Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Unified Diff: src/objects.cc

Issue 7324027: Fix: FunctionTemplate::SetPrototypeAttributes broke prototype object (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 6242198ec33e9f0e1f022c9ebef5bcadd42fef00..09a065c5304e923361df4536b1d778566964274d 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -2406,6 +2406,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
Mads Ager (chromium) 2011/07/11 10:12:54 If you want a note here I think it should explain
+// will silently fail).
MaybeObject* JSObject::SetLocalPropertyIgnoreAttributes(
String* name,
Object* value,
« src/apinatives.js ('K') | « src/apinatives.js ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698