bytecodealliance / bytecodealliance/javy

Can the host (Go via wasmtime) call a named function inside a Javy-compiled WASM module?

Open
#1,024 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
Rust
Stars
2.7k
Forks
135
Avg merge
1d 44m
Merged PRs (30d)
11

Description

Hi team,

We’re embedding a Javy-compiled WASM module in Go using wasmtime-go.
We already have a Javy plugin that exposes host functions back to JavaScript and that works well.

What we’d like to do next is have the Go host call a specific JavaScript function (exported from the Javy module) directly — essentially instance.GetFunc("my_js_func").Call(...).

Is this supported with Javy’s runtime model, or does Javy wrap QuickJS in a way that prevents direct host-to-guest function calls?
If it’s possible, could you point to an example or best practice for doing this safely?

Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.