4 ms·
Of course generators are completely unusable until other browsers start to support them. That is, unless you use a compiler to convert your generator code into
by amelius 12y ago
Of course generators are completely unusable until other browsers start to support them.
That is, unless you use a compiler to convert your generator code into more mundane javascript [1]. It would be nice to see these "emulated generators" in the comparison too.
[1] https://facebook.github.io/regenerator/ https://facebook.github.io/regenerator/
- fthrow111 12y agoFirefox uses javascript internally, so it's still good for Firefox devs and extension authors.
- rictic 12y agoGenerators will be on by default (not behind a flag) in Chrome 39, which will be released to stable in the next couple of weeks I believe. https://www.chromestatus.com/feature/4959347197083648 https://www.chromestatus.com/feature/4959347197083648
- amelius 12y agoBut what about IE?
- niutech 12y agoIE is lagging behind, as usual. See the HTML5 Test.
- mbrubeck 12y agohtml5test.com doesn't include generators or other JS language features. Instead, see http://kangax.github.io/compat-table/es6/ http://kangax.github.io/compat-table/es6/
- Flow 12y agoI think it's disappointing that Safari lags behind as much as IE does. http://kangax.github.io/compat-table/es6/ http://kangax.github.io/compat-table/es6/
- dmethvin 12y agoThat's not true. If you look at http://kangax.github.io/compat-table/es6/ http://kangax.github.io/compat-table/es6/ you'll see IE11 preview (their "canary") has more green than any other browser including Chrome or Firefox. Yes, even more than Firefox nightly or Chrome canary.
- magicalist 12y ago> their "canary" while that's sort of true, the big distinction is that the features in their "canary" aren't going to hit "stable" for another year or so, which is a lot of iterations of Firefox and Chrome in the meantime. However, it is fantastic to see where they're headed with IE12.
- acdha 12y agoUnder consideration currently – go vote: https://status.modern.ie/generators https://status.modern.ie/generators
- tracker1 12y agoI only partially agree here... in this generation of apps, you're going to wind up using traceur or es6ify for the most part, unless you're building a bundled app that targets a browser shell (cordova, node-webkit, etc) that can make the option available. I'm actually slightly annoyed that I have to run the dev version of node and the --harmony flag to get the new JS options server-side... but seeing what co/koa do with generators is really nice... I'm stuck transforming my client-side scripts for a while... it will be nice when I don't need to browserify/es6ify anymore.