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 bigint support on JS value conversion #93750

Conversation

adamscott
Copy link
Member

Fixes #93703

Also casts Boolean instead of using a double not.

Capture d’écran, le 2024-06-29 à 12 36 29

@adamscott adamscott added this to the 4.3 milestone Jun 29, 2024
@adamscott adamscott requested a review from a team as a code owner June 29, 2024 16:45
@adamscott adamscott changed the title Add bigint support on JS value conversion Add bigint support on JS value conversion Jun 29, 2024
@adamscott adamscott force-pushed the add-bigint-support-on-js-value-conversion branch from decf9b2 to 9444b94 Compare June 29, 2024 16:47
Copy link
Collaborator

@Faless Faless left a comment

Choose a reason for hiding this comment

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

LGTM!

See my comment regarding keeping the type if the bigint doesn't safely fit a Number.
It's not really a blocker, since truncating / approximating has been the behavior so far.

platform/web/js/libs/library_godot_javascript_singleton.js Outdated Show resolved Hide resolved
@adamscott adamscott force-pushed the add-bigint-support-on-js-value-conversion branch from 9444b94 to 5e900ed Compare July 2, 2024 12:09
@adamscott adamscott force-pushed the add-bigint-support-on-js-value-conversion branch from 5e900ed to ee27590 Compare July 3, 2024 11:44
@akien-mga akien-mga merged commit 01c24ff into godotengine:master Jul 4, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JavaScriptObject example code doesn't work
3 participants