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.