UNPKG

nodent-compiler

Version:

NoDent - Asynchronous Javascript language extensions

23 lines (18 loc) 291 B
async function breathe() {} async function inc(x) { await breathe() ; return x+1 ; }; async function test() { var s = "" ; var i = 0 ; while (i<5) { s += "<" ; i = await inc(i) ; s += i ; s += ">" ; } s += ("ok") ; return s ; } return await test()=="<1><2><3><4><5>ok" ;