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

JSExport method overload support #221

Merged
merged 2 commits into from
Mar 11, 2024
Merged

Conversation

jasongin
Copy link
Member

@jasongin jasongin commented Mar 9, 2024

Fixes: #199
Fixes: #201

This change adds support for exporting multiple methods with the same name using [JSExport], when defining a Node API module in C#. Overloaded constructors were mostly implemented already, but had a bug (#201). Now they are fixed and tested too. Overload resolution is supported in Native AOT modules since it does not depend on reflection. (Advanced overload resolution planned in #134 might require reflection though.)

@jasongin jasongin requested a review from vmoroz March 9, 2024 07:16
@jasongin jasongin merged commit 80cb809 into main Mar 11, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants