fromBytesAsync static method
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));