Skip to content

[wasm-ctor-eval] Do not error on non-constant code in the start function - #8778

Merged
kripken merged 5 commits into
WebAssembly:mainfrom
kripken:ctor.start.nonc
May 27, 2026
Merged

[wasm-ctor-eval] Do not error on non-constant code in the start function#8778
kripken merged 5 commits into
WebAssembly:mainfrom
kripken:ctor.start.nonc

Conversation

@kripken

@kripken kripken commented May 26, 2026

Copy link
Copy Markdown
Member

Before, we did not catch the Nonconstant exception.

@kripken
kripken requested a review from a team as a code owner May 26, 2026 21:50
@kripken
kripken requested review from stevenfontanella and removed request for a team May 26, 2026 21:50

@tlively tlively left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM % comment.

Comment on lines +19 to +20
;; While this is non-constant and evalling it fails, vacuum does remove it,
;; so it vanishes.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe also add a test that uses an imported global or function that will not be vacuumed away, just to make sure the vacuum isn't hiding any bugs.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done.

@kripken
kripken merged commit 04adfce into WebAssembly:main May 27, 2026
16 checks passed
@kripken
kripken deleted the ctor.start.nonc branch May 27, 2026 17:16
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