Skip to content

Commit

Permalink
avm2: Avoid coerce_to_object
Browse files Browse the repository at this point in the history
  • Loading branch information
cookie-s committed Dec 1, 2024
1 parent 62d6f79 commit 01c9101
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/avm2/globals/flash/geom/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ pub fn object_to_matrix3d<'gc>(
) -> Result<Matrix3D, Error<'gc>> {
let raw_data = object
.get_public_property("rawData", activation)?
.coerce_to_object(activation)?;
.as_object()
.expect("rawData cannot be null");
let raw_data = raw_data
.as_vector_storage()
.expect("rawData is not a Vector");
Expand Down

0 comments on commit 01c9101

Please sign in to comment.