[Swfdec] libswfdec/swfdec_as_function.c
Pekka Lampila
medar at kemper.freedesktop.org
Thu Sep 13 05:12:43 PDT 2007
libswfdec/swfdec_as_function.c | 2 ++
1 file changed, 2 insertions(+)
New commits:
diff-tree 8fcb6912a4fb328bc33fea63ccb4816a7fc47e4d (from 7028d035feb026c8f194d4d27be9348ff294fc10)
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Thu Sep 13 15:12:18 2007 +0300
Managed to cause Function.__proto__ to not be added in my last commit, fixed
diff --git a/libswfdec/swfdec_as_function.c b/libswfdec/swfdec_as_function.c
index c5b5694..b00f765 100644
--- a/libswfdec/swfdec_as_function.c
+++ b/libswfdec/swfdec_as_function.c
@@ -244,6 +244,8 @@ swfdec_as_function_init_context (SwfdecA
return;
context->Function_prototype = proto;
SWFDEC_AS_VALUE_SET_OBJECT (&val, proto);
+ swfdec_as_object_set_variable_and_flags (function, SWFDEC_AS_STR___proto__,
+ &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT);
swfdec_as_object_set_variable_and_flags (function, SWFDEC_AS_STR_prototype,
&val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT);
SWFDEC_AS_VALUE_SET_OBJECT (&val, function);
More information about the Swfdec
mailing list