In the compiled code below shouldn't the catch block do something with __iced_k like the try block does? So that console.log 'done' gets called if there's an exception while running the sync part of the try.
f = (cb) -> cb()
try
console.log 'in try'
throw new Error 'the error'
await f defer err
catch exn
console.log 'in catch'
console.log 'done'
In the compiled code below shouldn't the catch block do something with __iced_k like the try block does? So that
console.log 'done'
gets called if there's an exception while running the sync part of the try.Adding an await in the catch fixes the problem: