fromBytesAsync static method

Future<Module> fromBytesAsync(
  1. Uint8List bytes
)

Asynchronously compiles WebAssembly Module from Uint8List source.

Throws a CompileError on invalid module source.

Implementation

static Future<Module> fromBytesAsync(Uint8List bytes) =>
    promiseToFuture<_Module>(_compile(bytes))
        .then((_module) => Module._(_module));