quickjs-emscripten-sync icon indicating copy to clipboard operation
quickjs-emscripten-sync copied to clipboard

Doesn't work with asyncify

Open gaberogan opened this issue 1 year ago • 1 comments

Would it be possible for this library to support asyncify? Currently if I want to marshal an asyncified function I can't do that e.g.

  vm.arena.expose({
    http: {
      fetchSync: vm.newAsyncifiedFunction(async () => {
        return await fetch(url).then(r => r.text())
      }),
    },
  })

gaberogan avatar Dec 21 '23 17:12 gaberogan

I will check the latest update of quickjs-emscripten, but I'm busy, so it will take a little more time. (PR is anyime welcome)

rot1024 avatar Feb 01 '24 11:02 rot1024