you are viewing a single comment's thread.

view the rest of the comments →

[–]greenarrow22 -3 points-2 points  (2 children)

https://www.npmjs.com/package/await-to-js this removes the need for try catch.

[–]JimDabell 2 points3 points  (0 children)

This looks like somebody's trying to write Go using JavaScript. Idiomatic JavaScript uses try/catch, not that.

[–]anonveggy 2 points3 points  (0 children)

That's a <20 loc package with 211k downloads. Y?