Skip to content

Fix other.test_closure_webgpu_wasm64#26955

Merged
sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:fix_wasm64_test
May 15, 2026
Merged

Fix other.test_closure_webgpu_wasm64#26955
sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:fix_wasm64_test

Conversation

@sbc100
Copy link
Copy Markdown
Collaborator

@sbc100 sbc100 commented May 15, 2026

This was broken by #26954 but not covered by CI because we run the other testsuite with the emsdk version of node that doesn't support wasm64.

Without this change the wasm64 variant complains because it tried to case the return value of this function to a BigInt (pointer) before returning to Wasm.

@sbc100 sbc100 requested review from kripken and tlively May 15, 2026 01:19
This was broken by emscripten-core#26954 but not covered by CI because we run the
`other` testsuite with the emsdk version of node that doesn't support
wasm64.
@sbc100 sbc100 force-pushed the fix_wasm64_test branch from 312c45a to 1366e8f Compare May 15, 2026 01:24
@sbc100
Copy link
Copy Markdown
Collaborator Author

sbc100 commented May 15, 2026

Landing TBR to fix the testsuite.

@sbc100 sbc100 merged commit ac3758d into emscripten-core:main May 15, 2026
11 of 15 checks passed
@sbc100 sbc100 deleted the fix_wasm64_test branch May 15, 2026 01:28
Copy link
Copy Markdown
Member

@tlively tlively left a comment

Choose a reason for hiding this comment

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

LGTM, but why is this necessary?

@sbc100
Copy link
Copy Markdown
Collaborator Author

sbc100 commented May 15, 2026

See the PR description.

The function is declared as returning a pointer-sized-thing, which means we wrap the return value in BigInt(...).. but in error'ing version of the function returns undefined which makes closure complain that you cannot call BitInt(undefined).

@tlively
Copy link
Copy Markdown
Member

tlively commented May 15, 2026

Oh I see. "case" => "cast" in the description.

@tlively
Copy link
Copy Markdown
Member

tlively commented May 15, 2026

Oh, well I guess it's too late.

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