ruffle/core
Aaron Hill 8ac64289b3 avm2: Handle coercing to a class while it's being initialized
I think this might have been broken by
https://github.com/ruffle-rs/ruffle/pull/9506, but we didn't have
proper test coverage.

If we execute a 'coerce' opcode for a class while it's being
initialized (which can happen by running a method from a static
initializer), we'll be unable to resolve the ClassObject using
`resolve_type`.

This is the only case where this can happen - any
superinterfaces/superclass will already be fully initialized
when we're running a class initializer. Therefore, we can
try to lookup the class from the `Domain`, and check if it
directly matches the class of the object we're coercing
(ignoring superclasses and interfaces).
2023-03-08 16:38:24 -06:00
..
assets core: Extend the embedded fake device font with more characters 2022-02-09 20:09:52 +01:00
build_playerglobal fix(deps): update rust dependencies 2023-03-05 20:43:46 -06:00
macros fix(deps): update rust dependencies 2023-02-27 11:48:53 +02:00
src avm2: Handle coercing to a class while it's being initialized 2023-03-08 16:38:24 -06:00
Cargo.toml fix(deps): update rust dependencies 2023-03-05 20:43:46 -06:00
build.rs core: Added ability to mark stubs inside actionscript 2023-02-07 20:34:59 +01:00