art-in / TDL

Lightweight task tracker for daily life
0 stars 0 forks source link

Replace co-generators with async-await #80

Open art-in opened 7 years ago

art-in commented 7 years ago

latest co (4.6.0) in nodejs (7.2) doesn't work with generators (for whatever reason)

"TypeError: You may only yield a function, promise, generator, array, or object, but the following object was passed: "[object Object]"

async-await works since 7.2 with --harmony flag, or in 8.0 (nightly) with no flag.