avm2: Mark `EventDispatcher` as implementing `IEventDispatcher`.

This doesn't actually implement any of it's methods yet, which *would* cause an error *if* we were verifying that.
This commit is contained in:
David Wendt 2020-07-11 18:26:18 -04:00 committed by Mike Welsh
parent e72c9776ec
commit 664152d739
1 changed files with 8 additions and 2 deletions

View File

@ -29,11 +29,17 @@ pub fn class_init<'gc>(
/// Construct `EventDispatcher`'s class.
pub fn create_class<'gc>(mc: MutationContext<'gc, '_>) -> GcCell<'gc, Class<'gc>> {
Class::new(
let class = Class::new(
QName::new(Namespace::package("flash.events"), "EventDispatcher"),
Some(QName::new(Namespace::public_namespace(), "Object").into()),
Method::from_builtin(instance_init),
Method::from_builtin(class_init),
mc,
)
);
class
.write(mc)
.implements(QName::new(Namespace::package("flash.events"), "IEventDispatcher").into());
class
}