Skip to content

Conversation

@kjarosh
Copy link
Member

@kjarosh kjarosh commented Jan 28, 2026

When calling a setter, the error from within the setter is propagated,
not ignored.

The DisplacementMapFilter.mapPoint's setter has various weird behaviors:

  1. when a value cannot be coerced to a number, it's coerced to i32::MIN,
  2. errors from coercion are propagated after setting the value.

It's possible that this behavior is more common---in case similar
patterns are used in other places, we might want to restructure the
code.

When calling a setter, the error from within the setter is propagated,
not ignored.
The setter has various weird behaviors:
1. when a value cannot be coerced to a number, it's coerced to i32::MIN,
2. errors from coercion are propagated after setting the value.

It's possible that this behavior is more common---in case similar
patterns are used in other places, we might want to restructure the
code.
@kjarosh kjarosh added A-avm1 Area: AVM1 (ActionScript 1 & 2) T-compat Type: Compatibility with Flash Player waiting-on-review Waiting on review from a Ruffle team member labels Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-avm1 Area: AVM1 (ActionScript 1 & 2) T-compat Type: Compatibility with Flash Player 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