gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/server as_function.cpp


From: Sandro Santilli
Subject: [Gnash-commit] gnash/server as_function.cpp
Date: Mon, 31 Mar 2008 18:09:36 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  08/03/31 18:09:36

Modified files:
        server         : as_function.cpp 

Log message:
        add comment about why we set the __proto__ of Function.prototype in a 
second step

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_function.cpp?cvsroot=gnash&r1=1.57&r2=1.58

Patches:
Index: as_function.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/as_function.cpp,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -b -r1.57 -r1.58
--- as_function.cpp     31 Mar 2008 13:59:13 -0000      1.57
+++ as_function.cpp     31 Mar 2008 18:09:36 -0000      1.58
@@ -77,7 +77,10 @@
                // Initialize Function prototype
                proto = new as_object();
 
-               // 
+               // We initialize the __proto__ member separately, as 
getObjectInterface
+               // will end up calling getFunctionPrototype again and we want 
that
+               // call to return the still-not-completely-constructed 
prototype rather
+               // then create a new one. 
                proto->set_prototype(getObjectInterface());
 
                VM::get().addStatic(proto.get());
@@ -108,7 +111,6 @@
        as_object()
 {
        int flags = 
as_prop_flags::dontDelete|as_prop_flags::dontEnum|as_prop_flags::onlySWF6Up;
-
        init_member(NSV::PROP_uuPROTOuu, as_value(getFunctionPrototype()), 
flags);
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]