Skip to content

Commit

Permalink
compiler: add link to golang/go#66984
Browse files Browse the repository at this point in the history
Addresses PR feedback in tinygo-org#4027.
  • Loading branch information
ydnar committed Jun 23, 2024
1 parent a092800 commit fd75933
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/symbol.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,9 @@ func (c *compilerContext) checkWasmImport(f *ssa.Function, pragma string) {

// Check whether the type maps directly to a WebAssembly type, according to:
// https://github.com/golang/go/issues/59149
// TODO(ydnar): document why we relaxed this for WASI Preview 2.
//
// Update: this reflects the relaxed type restrictions proposed here:
// https://github.com/golang/go/issues/66984
func isValidWasmType(typ types.Type, isReturn bool) bool {
switch typ := typ.Underlying().(type) {
case *types.Basic:
Expand Down

0 comments on commit fd75933

Please sign in to comment.