search for: swfdec_as_str_asconstructor

Displaying 2 results from an estimated 2 matches for "swfdec_as_str_asconstructor".

2007 Sep 02
0
3 commits - libswfdec/swfdec_as_number.c libswfdec/swfdec_internal.h libswfdec/swfdec_player_as.c libswfdec/swfdec_player.c test/trace
...ayer); + + // init these two before swfdec_as_context_startup, so they won't get + // __proto__ and constructor properties + swfdec_as_object_add_function (context->global, SWFDEC_AS_STR_ASnative, + 0, swfdec_player_ASnative, 2); + swfdec_as_object_add_function (context->global, SWFDEC_AS_STR_ASconstructor, + 0, swfdec_player_ASconstructor, 2); +} + void swfdec_player_init_global (SwfdecPlayer *player, guint version) { - SwfdecAsValue val; - SwfdecAsObject *object; SwfdecAsContext *context = SWFDEC_AS_CONTEXT (player); swfdec_as_object_add_function (context->Object, SWFDEC_AS_STR...
2007 Aug 31
0
4 commits - libswfdec/swfdec_as_number.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_player_as.c test/trace
...; SwfdecAsContext *context = SWFDEC_AS_CONTEXT (player); swfdec_as_object_add_function (context->Object, SWFDEC_AS_STR_registerClass, @@ -272,5 +274,28 @@ swfdec_player_init_global (SwfdecPlayer 0, swfdec_player_ASnative, 2); swfdec_as_object_add_function (context->global, SWFDEC_AS_STR_ASconstructor, 0, swfdec_player_ASconstructor, 2); + + // remove __proto__ and constructor from ASnative and ASconstructor + + swfdec_as_object_get_variable (context->global, SWFDEC_AS_STR_ASnative, &val); + g_assert (SWFDEC_AS_VALUE_IS_OBJECT (&val)); + object = SWFDEC_AS_VALUE_GET_OBJECT...