Skip to content

RbError: SystemStackError: stack level too deep when using require 'json' with vm.evalAsync #340

@terrablue

Description

@terrablue

If I try to use require 'json' with vm.evalAsync, I get a RbError: SystemStackError: stack level too deep error.

No error if I use vm.eval.

Example code (with 3.2):

await vm.evalAsync("require 'json'");

In this case, I'm using the node_modules/@ruby/3.2-wasm-wasi/dist/ruby+stdlib.wasm file to get the JSON module.

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