1 2 3 4 5 6 7 8 9 10 11
"use strict"; async function run() { var a = 1; try { await Promise.reject(new Error('boom')); } catch (e) {} console.log('after await, typeof a ->', typeof a); } (async function () { await run(); })();