process static method

Future<EmscriptenModule> process(
  1. String moduleName
)

Connects to the JavaScript glue of the emscripten module.

This happens in the following way: First, a JavaScript property named moduleName of the global object is accessed, which should contain a function. Then this function is called and expected to return a JavaScript emscripten module.

The JavaScript emscripten module is responsible for retriving the WebAssembly and compile it accordingly.

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

Implementation

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