Skip to content

Commit

Permalink
avm2: Replace two more uses of instance_of with instance_class
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord-McSweeney authored and Lord-McSweeney committed Jun 9, 2024
1 parent 6c794c1 commit 1503f68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/avm2/globals/avmplus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ fn describe_internal_body<'gc>(
let super_vtable = if use_instance_traits {
class_obj.superclass_object().map(|c| c.instance_vtable())
} else {
class_obj.instance_of().map(|c| c.instance_vtable())
class_obj.instance_class().map(|c| c.instance_vtable())
};

if flags.contains(DescribeTypeFlags::INCLUDE_INTERFACES) && use_instance_traits {
Expand Down
2 changes: 1 addition & 1 deletion core/src/avm2/object/class_object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ impl<'gc> ClassObject<'gc> {
activation: &mut Activation<'_, 'gc>,
) -> Result<(), Error<'gc>> {
let class = self.inner_class_definition();
self.instance_of().ok_or(
self.instance_class().ok_or(
"Cannot finish initialization of core class without it being linked to a type!",
)?;

Expand Down

0 comments on commit 1503f68

Please sign in to comment.