`Class::new` should also take the superclass name.

This commit is contained in:
David Wendt 2020-07-07 00:18:52 -04:00
parent d96596fd8a
commit 4a2a456666
1 changed files with 2 additions and 1 deletions

View File

@ -121,6 +121,7 @@ impl<'gc> Class<'gc> {
/// using `load_traits`.
pub fn new(
name: QName<'gc>,
super_class: Option<Multiname<'gc>>,
instance_init: Method<'gc>,
class_init: Method<'gc>,
mc: MutationContext<'gc, '_>,
@ -129,7 +130,7 @@ impl<'gc> Class<'gc> {
mc,
Self {
name,
super_class: None,
super_class,
attributes: CollectWrapper(EnumSet::empty()),
protected_namespace: None,
interfaces: Vec::new(),