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

Fix generator bugs with un-namespaced types #360

Merged
merged 1 commit into from
Aug 19, 2024
Merged

Conversation

jasongin
Copy link
Member

Related: #265

This fixes a few cases in which the module generator produced invalid code for un-namespaced types exported from C# with [JSExport].

I didn't add new test cases for this because it would require duplicating a lot of existing tests. But I did run all the existing module-export tests without namespaces to verify the fixes.

This does not add support for dynamic invocation of un-namespaced types. I am unsure whether it is a good idea to support that at all: with the way types from all loaded assemblies are merged into a combined namespace hierarchy, it could be easy to encounter name conflicts among un-namespaced types.

@jasongin jasongin merged commit 259936d into main Aug 19, 2024
24 checks passed
@jasongin jasongin deleted the dev/jasongin/nonamespace branch August 19, 2024 17:03
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