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

JS2 constructors: Support attr constructors #718

Open
Tracked by #582
Manishearth opened this issue Oct 30, 2024 · 0 comments · May be fixed by #754
Open
Tracked by #582

JS2 constructors: Support attr constructors #718

Manishearth opened this issue Oct 30, 2024 · 0 comments · May be fixed by #754
Labels
B-js JS backend

Comments

@Manishearth
Copy link
Contributor

Opaques, structs, and enums should expose their attr constructor as a constructor. This may mean using symbol tricks to keep the internal ctor around.

Default ctor behavior for enums and structs should be unconditionally available with a fromFields() and fromString() method, or something.

@Manishearth Manishearth added the B-js JS backend label Oct 30, 2024
@ambiguousname ambiguousname linked a pull request Dec 27, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-js JS backend
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant