Skip to content

J2CLOpts - Avoid an error when handling imported globals by checking for/ignoring them in GlobalAssignmentCollector#8023

Merged
kripken merged 1 commit into
WebAssembly:mainfrom
mason-lgtm:j2clopts-handle-imports
Nov 5, 2025
Merged

J2CLOpts - Avoid an error when handling imported globals by checking for/ignoring them in GlobalAssignmentCollector#8023
kripken merged 1 commit into
WebAssembly:mainfrom
mason-lgtm:j2clopts-handle-imports

Conversation

@mason-lgtm
Copy link
Copy Markdown
Contributor

This pass was failing because it is trying to access curr->init, where curr is a Global*. init is null when the global is imported.

…for/ignoring them in GlobalAssignmentCollector
@mason-lgtm mason-lgtm marked this pull request as ready for review November 5, 2025 01:03
@kripken kripken merged commit a74bf96 into WebAssembly:main Nov 5, 2025
17 checks passed
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