4 ms·
I missed it when I first read the blog post, so I figure it's worth emphasizing: the new async/await support is only available on JavaScript engines that alread
by dfabulich 11y ago
I missed it when I first read the blog post, so I figure it's worth emphasizing: the new async/await support is only available on JavaScript engines that already support "function*" generator functions: Node 4, Firefox, and Chrome, but not Safari or IE/Edge.
Supporting async/await in ES5/ES3 is on the roadmap for TypeScript v2.0. https://github.com/Microsoft/TypeScript/wiki/roadmap https://github.com/Microsoft/TypeScript/wiki/roadmap
- ahoge 11y agoEdge 13 does support generators. http://kangax.github.io/compat-table/es6/ http://kangax.github.io/compat-table/es6/
- scanr 11y agoYou could also have a TypeScript to babel to ES5 workflow e.g.: http://gurustop.net/blog/2015/10/27/babel-typescript-compiler-gulp http://gurustop.net/blog/2015/10/27/babel-typescript-compile...