Skip to content

tests: Test more classes in avm1/native_objects_swf*.#23130

Open
moulins wants to merge 1 commit intoruffle-rs:masterfrom
moulins:test-expand-avm1-native-objects
Open

tests: Test more classes in avm1/native_objects_swf*.#23130
moulins wants to merge 1 commit intoruffle-rs:masterfrom
moulins:test-expand-avm1-native-objects

Conversation

@moulins
Copy link
Contributor

@moulins moulins commented Feb 26, 2026

Of note:

  • Some objects have a read-only __proto__, requring a call to ASSetPropFlags before their nativeness can be tested.
  • Even with the above work-around, NetConnection objects refuse to have their __proto__ modified.

Possibly related to this comment in #22920.

Of note:
- Some objects have a read-only `__proto__`, requring a call to
  `ASSetPropFlags` before their nativeness can be tested.
- Even with the above work-around, `NetConnection` objects refuse
  to have their `__proto__` modified.
@moulins moulins added A-tests Area: Tests & Test Framework T-compat Type: Compatibility with Flash Player waiting-on-review Waiting on review from a Ruffle team member labels Feb 26, 2026
new SharedObject() /* not a class */: non-native
new Sound(): native
new Sound(2): native
new Sound(_root): native
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the discussion on Discord, we could add new Sound(unloadedMovie) here?

@kjarosh kjarosh removed the waiting-on-review Waiting on review from a Ruffle team member label Feb 28, 2026
@kjarosh kjarosh added the waiting-on-author Waiting on the PR author to make the requested changes label Mar 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-tests Area: Tests & Test Framework T-compat Type: Compatibility with Flash Player waiting-on-author Waiting on the PR author to make the requested changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants