Skip to content

wasm: global functions from wasm not working from node #29845

@mattetti

Description

@mattetti

What version of Go are you using (go version)?

$ go version
go version go1.12beta2 Darwin/amd64

Does this issue reproduce with the latest release?

Yes

What did you do?

I am trying to call registered functions (aka callbacks) defined in the WebAssembly file from node js. I use the provided wasm_exec.js which does call into the main function without any issues. From what I could gather, we are missing a way to expose the registered functions in JS. But unfortunately I am not familiar enough with the implementation details nor did I find a lot of information online on the matter.

What did you expect to see?

I expected to be able to call my exposed functions from js outside of the browser.

What did you see instead?

A js exception

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.arch-wasmWebAssembly issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions