Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with asyncify #32

Open
gaberogan opened this issue Dec 21, 2023 · 1 comment
Open

Doesn't work with asyncify #32

gaberogan opened this issue Dec 21, 2023 · 1 comment

Comments

@gaberogan
Copy link

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 gaberogan changed the title Usage with asyncify? Doesn't work with asyncify Dec 21, 2023
@rot1024
Copy link
Member

rot1024 commented Feb 1, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants