Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Don't run `embedBytes()` if `embedByteArray()` is also running. Both functions insert a constructor, and one class can't have two constructors, much less call `super()` with two different signatures. I can only assume a bug in Haxe that prevented this from being an issue until now, and that Haxe 5 is fixing the bug. * Check for `@:autoBuild` only after checking for embed data. If we ever decide to handle the case of the embed functions being called for non-classes (meaning `getLocalClass()` would return null), we'd handle it in `embedData()`. Therefore `embedData()` should happen first.
- Loading branch information