compile static method

Future<EmscriptenModule> compile(
  1. Uint8List wasmBinary,
  2. String moduleName
)

Connects to the JavaScript glue of the emscripten module.

Works like process, except that the bytes of the WebAssembly are passed to the JavaScript emscripten module, so it is your responsibility to fetch it.

On platforms where dart:js is not available, an UnsupportedError is thrown.

Implementation

static Future<EmscriptenModule> compile(
        Uint8List wasmBinary, String moduleName) =>
    throw new UnsupportedError(
        'Emscripten operations are only allowed on the web (where dart:js is present)!');