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

validate: could not validate a simple program #36

Open
@sbinet

Description

@sbinet

trying to validate a simple program:

package main

func main() {
	println("hello")
	println("1+3=", myadd(1, 3))
}

func myadd(i, j int) int {
	return i + j
}

compiled with GOOS=js GOARCH=wasm and the gc compiler from neelance go-wasm-wip, I get:

$> wasm-run -verify-module ./a.wasm
wasm-run: could not verify module: error while validating function 686 at offset 64: invalid type, got: i32, wanted: i64

running WebAssembly.validate (from my chromium browser) did not raise anything.

@vibhavp any idea?

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