Skip to content

Conversation

@kripken
Copy link
Member

@kripken kripken commented Dec 5, 2025

Fixes #8090

@kripken kripken requested a review from tlively December 9, 2025 23:51
Copy link
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.

Alternatively we could just change them all to "invalid local index"

return Err{"local.set is only valid in a function context"};
}
if (local >= func->getNumLocals()) {
return Err{"invalid local.get index"};
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return Err{"invalid local.get index"};
return Err{"invalid local.set index"};

return Err{"local.tee is only valid in a function context"};
}
if (local >= func->getNumLocals()) {
return Err{"invalid local.get index"};
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return Err{"invalid local.get index"};
return Err{"invalid local.tee index"};

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.

[Bug] Assertion failed in wasm::Function::isVar when parsing invalid local index

2 participants