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

[js] Enums don't survive advanced minification #11327

Closed
RealyUniqueName opened this issue Oct 9, 2023 · 1 comment · Fixed by #11328
Closed

[js] Enums don't survive advanced minification #11327

RealyUniqueName opened this issue Oct 9, 2023 · 1 comment · Fixed by #11328
Assignees
Labels
platform-javascript Everything related to JS / JavaScript

Comments

@RealyUniqueName
Copy link
Member

enum Dummy {
	EDummy(s:String);
}

class Main {
	static function main() {
		var a = EDummy('foo');
		trace(Type.enumParameters(a));
	}
}

Actual result:

$ haxe -m Main -L closure -D closure_advanced --js test.js && node test.min.js
src/Main.hx:8: [ undefined ]

Expected result:

$ haxe -m Main -L closure -D closure_advanced --js test.js && node test.min.js
src/Main.hx:8: [ 'foo' ]

PR is on the way.

@RealyUniqueName RealyUniqueName added the platform-javascript Everything related to JS / JavaScript label Oct 9, 2023
@RealyUniqueName RealyUniqueName self-assigned this Oct 9, 2023
@RealyUniqueName
Copy link
Member Author

Related issue: #9345

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform-javascript Everything related to JS / JavaScript
Projects
None yet
1 participant