Skip to content

Commit fd75933

Browse files
committed
compiler: add link to golang/go#66984
Addresses PR feedback in tinygo-org#4027.
1 parent a092800 commit fd75933

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/symbol.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,9 @@ func (c *compilerContext) checkWasmImport(f *ssa.Function, pragma string) {
375375

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

0 commit comments

Comments
 (0)