Skip to content

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

@leoparis89

Description

@leoparis89

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions