Skip to content

Conversation

@FlorianB-playdigious
Copy link
Contributor

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).

@ncannasse ncannasse merged commit bcd421b into HaxeFoundation:master Aug 29, 2025
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.

2 participants