process static method

Future<EmscriptenModule> process(
  1. String moduleName
)

Documentation is in emscripten_module_stub.dart!

Implementation

static Future<EmscriptenModule> process(String moduleName) async {
  Function moduleFunction = _moduleFunction(moduleName);
  _EmscriptenModuleJs module = new _EmscriptenModuleJs();
  Object? o = moduleFunction(module);
  if (o != null) {
    await promiseToFuture(o);
    return new EmscriptenModule._fromJs(module);
  } else {
    throw new StateError('Could not instantiate an emscripten module!');
  }
}