Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
Co-Authored-By: Sebastien Binet <[email protected]>
  • Loading branch information
twitchyliquid64 and sbinet authored Oct 17, 2019
1 parent d9f6e2b commit 1ea36af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validate/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func verifyBody(fn *wasm.FunctionSig, body *wasm.FunctionBody, module *wasm.Modu
case frame == nil || frame.op == operators.Call:
return vm, UnmatchedOpError(op)
// IF block with no else cannot have a result.
case (frame.op == operators.If) && len(frame.endTypes) > 0:
case frame.op == operators.If && len(frame.endTypes) > 0:
return vm, UnmatchedIfValueErr(frame.endTypes[0])
}
for _, t := range frame.endTypes {
Expand Down

0 comments on commit 1ea36af

Please sign in to comment.