Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avm2: Improve XMLList set_local_property #13255

Merged
merged 6 commits into from
Oct 9, 2023

Conversation

sleepycatcoding
Copy link
Member

@sleepycatcoding sleepycatcoding commented Sep 20, 2023

This PR solves RustError("Modifying an XMLList object is not yet implemented: need to resolve") errors.

Fixes #2444
Fixes #10540
Fixes #12173
Fixes #12406

TODO:

  • Fix all the FIXMEs about target property
  • Add tests

@sleepycatcoding sleepycatcoding force-pushed the xml_list_set_property branch 3 times, most recently from c7aa098 to 683ab18 Compare September 28, 2023 17:38
@sleepycatcoding sleepycatcoding marked this pull request as ready for review September 28, 2023 17:54
@sleepycatcoding sleepycatcoding marked this pull request as draft September 30, 2023 13:58
@sleepycatcoding
Copy link
Member Author

I think I will also implement the other path in this PR as it actually does not seem that complicated as I thought it was.

@sleepycatcoding sleepycatcoding force-pushed the xml_list_set_property branch 3 times, most recently from 995ab1e to f4f784a Compare September 30, 2023 18:23
@sleepycatcoding sleepycatcoding marked this pull request as ready for review September 30, 2023 18:24
/// for resolving the value of empty XMLLists.
#[derive(Clone, Collect, Copy, Debug)]
#[collect(no_drop)]
pub enum XmlOrXmlListObject<'gc> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

personally I'd probably keep using an Object, but I guess this is slightly safer.

@sleepycatcoding sleepycatcoding force-pushed the xml_list_set_property branch 2 times, most recently from b2a47a1 to f88e4a9 Compare October 3, 2023 18:08
adrian17 pushed a commit to sleepycatcoding/ruffle that referenced this pull request Oct 5, 2023
adrian17 pushed a commit that referenced this pull request Oct 5, 2023
@sleepycatcoding sleepycatcoding force-pushed the xml_list_set_property branch 3 times, most recently from ee6f248 to 3ef8785 Compare October 6, 2023 20:20
@sleepycatcoding sleepycatcoding force-pushed the xml_list_set_property branch 2 times, most recently from 9d8c9a6 to 9ae5dcc Compare October 9, 2023 21:59
@torokati44 torokati44 enabled auto-merge (rebase) October 9, 2023 22:00
@torokati44 torokati44 merged commit 21a1e1f into ruffle-rs:master Oct 9, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants