Better HN
topnewbestaskshowjobs
Log inSign up

voxtex

3 karma · joined Mar 16, 2010 (16y ago) · 3 submissions

Submissions

comment 11y ago · link · parent

I've found using promises with generators yields code very similar to async/await, without relying on experimental features.

https://github.com/tj/co

or

https://github.com/petkaantonov/bluebird/blob/master/API.md#...

comment 12y ago · link · parent

' + alert() + '

worked for me.

comment 12y ago · link · parent

Completely agree with you. Many of the tests don't do any kind of assertion, simply ensure that an exception isn't thrown on the invocation of a method. An interface defined in a static language would render the majority of these tests unnecessary.