Skip to content

Conversation

kripken
Copy link
Member

@kripken kripken commented Aug 20, 2025

No description provided.

@kripken kripken requested a review from tlively August 20, 2025 16:10
Comment on lines 3982 to 3984
if (!curr->type.isContinuation()) {
return;
}
Copy link
Member

Choose a reason for hiding this comment

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

Let's put the early return on a check for unreachable and then do a shouldBeTrue (with the error message below) to check for a continuation.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, there is already an unreachable if above. Fixed.

Comment on lines 3987 to 3989
if (!shouldBeTrue(cont.type.isSignature(),
curr,
"cont.new must be annotated with a continuation type")) {
Copy link
Member

Choose a reason for hiding this comment

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

We can just assert that the continuation refers to a function type. It's impossible for the the type to have been successfully built otherwise.

Copy link
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 e9b4c9e into WebAssembly:main Aug 20, 2025
16 checks passed
@kripken kripken deleted the cont.val branch August 20, 2025 19: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