Displaying 1 result from an estimated 1 matches for "swfdec_as_super_new_chain".
2007 Nov 14
0
7 commits - libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_super.c libswfdec/swfdec_as_super.h
...stack_peek (cx, 2), NULL, &pobj);
}
} else {
if (SWFDEC_AS_VALUE_IS_STRING (val))
@@ -908,8 +909,10 @@ swfdec_action_call_method (SwfdecAsContext *cx, guint action, const guint8 *data
/* setup super to point to the right prototype */
if (SWFDEC_IS_AS_SUPER (obj)) {
swfdec_as_super_new_chain (frame, SWFDEC_AS_SUPER (obj), name);
+ } else if (cx->version > 6) {
+ swfdec_as_super_new (frame, obj, pobj == obj ? obj->prototype : pobj);
} else {
- swfdec_as_super_new (frame, obj, FALSE);
+ swfdec_as_super_new (frame, obj, obj->prototype);
}
swfde...