 Promise(resolve_ => resolve = resolve_);
    }

    const printed = [];
    function print(s) {
      printed.push(s);
    }

    const vm = await Runtime.restore(snapshot, { 0: asyncHostFunc, 1: print });
    const { 0: run } = vm.exports;

    run();
    assert(resolve);
    assert.deepEqual(printed, ['before await']);

    resolve(42);

    // ---------------------------------- END ---------------------------------

    // 3. Run `npx serve` in the root project folder, open
    //    http://localhost:30