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

Avoid generating broken code when the object type is in a union #231

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ExE-Boss
Copy link
Contributor

@ExE-Boss ExE-Boss commented Nov 26, 2020

WebIDL2JS currently crashes when the object type is in a union, this fixes that.

Depends on:

undefined overloadsBooleanOrNumeric(boolean arg1);
undefined overloadsBooleanOrNumeric(long arg1);

// ## Avoid regressions:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought the present bug has to do with union types? Is overloading affected by the bug as well?

I'd also prefer a more surgical test suite. The snapshot generated from this file is really huge and not reviewable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is overloading affected by the bug as well?

The current version isn’t, because overloads had the bug fixed at some point.

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