Open aspirisen opened 5 months ago
@aspirisen Honestly not sure! What should happen in a catch clause here? 🤔
@jaredcwhite I think it should have same stdout
log
process.stdout.write(JSON.stringify(['err', '' + err, err.stack]))
Because func
call is not awaited
then try catch block doesn't handle the error
With await
With catch
clause
Here https://github.com/bridgetownrb/node-runner/blob/master/lib/node_runner.js#L3
We have wrapper
try-catch
block. But is there any specific reason whyPromise.resolve()
doesn't havecatch
clause?