Skip to content

avm2: fix localeCompare behaviour for swf versions <= 11 #21003

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

SuchAFuriousDeath
Copy link
Contributor

No description provided.

@SuchAFuriousDeath SuchAFuriousDeath changed the title avm2: fix localeCompare behaviour for swf versions < 11 avm2: fix localeCompare behaviour for swf versions <= 11 Jul 15, 2025
@kjarosh kjarosh added A-avm2 Area: AVM2 (ActionScript 3) T-fix Type: Bug fix (in something that's supposed to work already) labels Jul 17, 2025
@SuchAFuriousDeath SuchAFuriousDeath force-pushed the fix-string-locale-compare branch from 7b4e04e to b4cc528 Compare July 23, 2025 08:37
let other = args.get_string(activation, 0)?;
let other_value = args.get_value(0);

if activation.caller_movie_or_root().version() <= 11 {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are you sure activation.caller_movie_or_root().version() <= 11 is correct? In my version of FP, the special-case for null and undefined only activates in SWFv9 and SWFv10 (so activation.caller_movie_or_root().version() <= 10).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-avm2 Area: AVM2 (ActionScript 3) T-fix Type: Bug fix (in something that's supposed to work already)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants