UNPKG

nodent-compiler

Version:

NoDent - Asynchronous Javascript language extensions

23 lines (20 loc) 299 B
async function breathe() {} async function runTests(f) { try { if (f) { n += 1 ; await breathe(2) ; n += 3 ; } else { n += 2 ; await breathe(3) ; n += 4 ; } } catch (ex) { console.log(ex) ; } return n ; } var n ; n = "" ; return await runTests(1)+await runTests(0) ;