wasm-rquickjs-cli 0.5.3

Tool for wrapping JavaScript modules as WebAssembly components using the QuickJS engine
1
2
3
4
5
6
7
import * as host from 'test:async-io/host';

export async function run(ms) {
  // Call the async host import and await its promise, then transform the result.
  const delayed = await host.hostDelay(ms);
  return delayed + 1;
}