[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog server/as_function.cpp
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog server/as_function.cpp |
Date: |
Mon, 31 Mar 2008 11:56:44 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 08/03/31 11:56:44
Modified files:
. : ChangeLog
server : as_function.cpp
Log message:
__proto__ is still attached to functions in SWF5, only not-visible (a
flag)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6112&r2=1.6113
http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_function.cpp?cvsroot=gnash&r1=1.55&r2=1.56
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6112
retrieving revision 1.6113
diff -u -b -r1.6112 -r1.6113
--- ChangeLog 31 Mar 2008 11:55:39 -0000 1.6112
+++ ChangeLog 31 Mar 2008 11:56:43 -0000 1.6113
@@ -1,5 +1,7 @@
2008-03-31 Sandro Santilli <address@hidden>
+ * server/as_function.cpp: __proto__ is still attached to functions in
+ SWF5, only not-visible (a flag).
* server/asobj/Object.cpp: register natives despite swf version.
* server/asobj/Global.cpp: register ASSetPropFlags native.
Index: server/as_function.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/as_function.cpp,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -b -r1.55 -r1.56
--- server/as_function.cpp 30 Mar 2008 14:46:56 -0000 1.55
+++ server/as_function.cpp 31 Mar 2008 11:56:43 -0000 1.56
@@ -107,10 +107,9 @@
//as_object(getFunctionPrototype())
as_object()
{
- if ( VM::get().getSWFVersion() > 5 )
- {
- init_member(NSV::PROP_uuPROTOuu,
as_value(getFunctionPrototype()));
- }
+ int flags =
as_prop_flags::dontDelete|as_prop_flags::dontEnum|as_prop_flags::onlySWF6Up;
+
+ init_member(NSV::PROP_uuPROTOuu, as_value(getFunctionPrototype()),
flags);
}
@@ -121,10 +120,8 @@
//as_object(getFunctionPrototype())
as_object()
{
- if ( VM::get().getSWFVersion() > 5 )
- {
- init_member(NSV::PROP_uuPROTOuu,
as_value(getFunctionPrototype()));
- }
+ int flags =
as_prop_flags::dontDelete|as_prop_flags::dontEnum|as_prop_flags::onlySWF6Up;
+ init_member(NSV::PROP_uuPROTOuu, as_value(getFunctionPrototype()),
flags);
if ( iface )
{