bytebox - v1.0.0
    Preparing search index...

    Interface TeaVMRuntime

    The subset of TeaVM's generated *.wasm-runtime.js that bytebox drives. Build with modularRuntime = true so the file is an ES module rather than a global assignment.

    Only defaults is used. The generated load is not: it probes for JS String Builtins by compiling a module from bytes, which workerd refuses at request time; it takes the Node branch on any compatibility date from 2026-08-04 because nodejs_compat defines process; and it resolves the program's JavaScript imports with a dynamic import() of a specifier read out of a wasm custom section, which no bundler can follow.

    interface TeaVMRuntime {
        defaults(
            imports: Record<string, unknown>,
            userExports: Record<string, unknown>,
            stringBuiltinsSupported: boolean,
        ): { supplyExports(exports: WebAssembly.Exports): void };
    }
    Index
    • Parameters

      • imports: Record<string, unknown>
      • userExports: Record<string, unknown>
      • stringBuiltinsSupported: boolean

      Returns { supplyExports(exports: WebAssembly.Exports): void }