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:
parent
e72c9776ec
commit
664152d739
|
@ -29,11 +29,17 @@ pub fn class_init<'gc>(
|
||||||
|
|
||||||
/// Construct `EventDispatcher`'s class.
|
/// Construct `EventDispatcher`'s class.
|
||||||
pub fn create_class<'gc>(mc: MutationContext<'gc, '_>) -> GcCell<'gc, Class<'gc>> {
|
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"),
|
QName::new(Namespace::package("flash.events"), "EventDispatcher"),
|
||||||
Some(QName::new(Namespace::public_namespace(), "Object").into()),
|
Some(QName::new(Namespace::public_namespace(), "Object").into()),
|
||||||
Method::from_builtin(instance_init),
|
Method::from_builtin(instance_init),
|
||||||
Method::from_builtin(class_init),
|
Method::from_builtin(class_init),
|
||||||
mc,
|
mc,
|
||||||
)
|
);
|
||||||
|
|
||||||
|
class
|
||||||
|
.write(mc)
|
||||||
|
.implements(QName::new(Namespace::package("flash.events"), "IEventDispatcher").into());
|
||||||
|
|
||||||
|
class
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue