Skip to content

Nightly 2022-08-12

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 12 Aug 00:03
avm2: Implement 'throw' opcode

We currently lack the ability to preserve the original
`Value<'gc>` in the error, so we're forced to stringify the error.

This means that only typeless 'catch' blocks will work properly -
however, they're the only kind of 'catch' block that we currently
implement. Implementing support for typed 'catch' blocks will naturally
allow us to preserve the original 'Value<'gc>' in the 'throw'
implementation, since we'll need to switch to a custom `Error<'gc>`
type.