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

Add Byte to list of java Numbers #1501

Merged
merged 1 commit into from
Jul 21, 2024

Conversation

tonygermano
Copy link
Contributor

I think it was just an oversight that Byte was missing from the list. Originally, it applied to all java.lang.Numbers.

@p-bakker
Copy link
Collaborator

Also see #996

@tonygermano
Copy link
Contributor Author

tonygermano commented Jun 26, 2024

Also see #996

I forgot I created that discussion post 3 years ago, but I've obviously been thinking about this for a long time! I also opened #1502 after this PR.

@gbrail
Copy link
Collaborator

gbrail commented Jun 30, 2024

This seems quite reasonable to me, but in most of the work I've done I haven't used the WrapFactory much.

Is there any way to add a test for this functionality so that we could see the effect of a regression here, even if it ends up being just a test of that instanceof check?

@tonygermano
Copy link
Contributor Author

Test added.

@p-bakker p-bakker added the Java Interop Issues related to the interaction between Java and JavaScript label Jul 21, 2024
@gbrail
Copy link
Collaborator

gbrail commented Jul 21, 2024

Great, and thanks!

@gbrail gbrail merged commit dc08eb5 into mozilla:master Jul 21, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java Interop Issues related to the interaction between Java and JavaScript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants