quickjs-emscripten-sync
quickjs-emscripten-sync copied to clipboard
Getting Maximum call stack size exceeded when I call an exposed function
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.