Skip to content

Restore compatibility with haxe prior to 4.1 #148

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 1 commit into
base: master
Choose a base branch
from

Conversation

FlorianB-playdigious
Copy link

Commit e2f6072 broke compatibility with haxe versions prior to 4.1, as the for loops used in the makeMap function rely on the keys array to support ArrayKeyValueIterator, a feature introduced in haxe 4.1.

hscript documentation does not specify any requirement regarding a minimum haxe version. I know haxe 4.0.X is quite old, but some projects still rely on it.

As such, I restored the "old code" prior to the breaking commit, while integrating it within the makeMap function, in between #if (haxe >= 4.1) guards. With this fix, hscript does compile with haxe 4.02 and 4.0.3 (not tested with other versions).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant