Skip to content

Conversation

@Lord-McSweeney
Copy link
Collaborator

In the future, this will allow us to easily implement

  • calling toString on all uncaught errors
  • UncaughtErrorEvents

- Remove an old comment
- Use `Avm2StageObject::for_display_object` and avoid constructing an `Activation`
`sound_object::play_queued` returned a `Result`, but never returned the error variant
This function should be called when an uncaught AVM2 error needs to be logged.
Currently, it just prints the error, but in the future it should also dispatch
an `uncaughtError` event.
This fixes a panic when the `Bitmap` constructor throws an error
Also:
- Remove some old TODO comments
- Don't log errors that appear when getting original value of property
@Lord-McSweeney Lord-McSweeney added waiting-on-review Waiting on review from a Ruffle team member A-core Area: Core player, where no other category fits T-refactor Type: Refactor / Cleanup labels Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-core Area: Core player, where no other category fits T-refactor Type: Refactor / Cleanup waiting-on-review Waiting on review from a Ruffle team member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant