Skip to content

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

Open
kripken wants to merge 5 commits into
WebAssembly:mainfrom
kripken:ctor.start.nonc
Open

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

Conversation

@kripken
Copy link
Copy Markdown
Member

@kripken kripken commented May 26, 2026

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
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 % 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.

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