@ruby/wasm-wasi
    Preparing search index...

    Type Alias RubyInitModuleOptions

    type RubyInitModuleOptions = {
        module: WebAssembly.Module;
        wasip1: {
            wasiImport: WebAssembly.ModuleImports;
            initialize(instance: Instance): void;
        };
        args?: string[];
        addToImports?: (imports: WebAssembly.Imports) => void;
        setMemory?: (memory: WebAssembly.Memory) => void;
    }
    Index

    Properties

    module: WebAssembly.Module

    The WebAssembly module that contains the Ruby VM

    wasip1: {
        wasiImport: WebAssembly.ModuleImports;
        initialize(instance: Instance): void;
    }

    WASI Preview 1 implementation supporting reactor model ABI

    args?: string[]

    The arguments to pass to the Ruby VM. Note that the first argument must be the Ruby program name.

    ["ruby.wasm", "-EUTF-8", "-e_=0"]
    
    addToImports?: (imports: WebAssembly.Imports) => void

    A hook to add additional imports to the WebAssembly instance

    setMemory?: (memory: WebAssembly.Memory) => void

    A hook called with the WebAssembly memory instance just after the Ruby VM is instantiated