syscall/js.finalizeRef not implemented #1140

@tranxuanthang

Description

The error happened when I try an example ( https://github.com/tinygo-org/tinygo/blob/master/src/examples/wasm/slices/ )

Steps to reproduce:

  • Clone the tinygo repository git clone git@github.com:tinygo-org/tinygo.git
  • cd tinygo/src/examples/wasm/slices
  • Build the wasm with tinygo build -o wasm.wasm -target wasm --no-debug ./wasm.go
  • Copy the file tinygo/targets/wasm_exec.js to current slices folder
  • Run the server, open the address in browser and start typing a number. You should see the error above.
  •