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

Getting Maximum call stack size exceeded when I call an exposed function

Open leoparis89 opened this issue 1 year ago • 0 comments

Hello and thanks for creating this library that adds usefull functionality. I'm getting Maximum call stack size exceeded when I call an exposed function


  const ctx = QuickJS.newContext();
  const arena = new Arena(ctx, { isMarshalable: true });

  const exposed = {
    handle: () => {},
  };

  arena.expose(exposed);

  arena.evalCode(`
    handle(); // fails with Maximum call stack size exceeded
  `);

  arena.dispose();
  ctx.dispose();

I'm using QuickJs configured for cloudflare workers. Is this bug related to that ? Here is the repo to reproduce the bug.

leoparis89 avatar Oct 28 '24 15:10 leoparis89