Skip to content

[ruby-head-wasm-wasi] Is there any way to disable js module? #126

@riywo

Description

@riywo

I'd like to use ruby.wasm as a sandboxed interpreter in browser i.e. just for pure computation with restricted DOM access because it executes untrusted code.

It looks like js module is available by default in ruby-head-wasm-wasi's DefaultRubyVM, but is there any way to disable it?
https://github.com/ruby/ruby.wasm/tree/main/packages/npm-packages/ruby-head-wasm-wasi#quick-start-for-browser

I'm a novice in the WebAssembly world, so it'll take time to read the whole code base of ruby.wasm for me. Therefore, I'm asking such a question beforehand in case someone already knows the answer...

Sorry for bothering you guys.

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