UNPKG

nodent-compiler

Version:

NoDent - Asynchronous Javascript language extensions

31 lines (27 loc) 387 B
async function breathe() {} async function oops() { await breathe() ; throw "oops" ; } async function test() { try { for (var n=0; n<4; n++) { try { await oops() ; } catch (ex) { if (n>2) throw "inner" ; } } } catch (ex) { throw ex+"-outer" ; } return ; } try { await test(); } catch (ex) { if (ex==="inner-outer") return true ; } return false ;