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

could not create VM: disasm: stack underflow #69

@valvesss

Description

@valvesss

Hello, I'm trying to compile and run a simple program from GO to WASM and execute the VM with wagon, but I'm stuck at stack underflow. Any idea?

Code (helloworld.go):

package main

func main(){
  ret := retorno()
  _ = ret
}

func retorno() int64 {
  var num int64 = 50
  return num
}

Compile (With golang beta, go1.11beta1):

GOARCH=wasm GOOS=js go1.11beta1 build -o test.wasm helloworld.go

Running (wagon functions, latest version) :

https://gist.github.com/valvesss/c3ac06a597bf25d466271275dd478fb3

Result:
could not create VM: disasm: stack underflow

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions