8

I need to test/work generators that are part of the ES6 draft. To work on I need a browser(in my case). As Google Canary is strictly for developers, so does it support generators as of now? My OS is Windows 7.

ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
Mozak
  • 2,738
  • 4
  • 30
  • 49
  • 1
    you might be interested in https://github.com/google/traceur-compiler – goat Jan 03 '14 at 04:54
  • You may also be interested in http://kangax.github.io/es5-compat-table/es6/ to know what's available on the browser you're using (I'm aware it wouldn't have helped you as you have to activate the flag on chrome, I'm putting it here for information purposes only). – Loamhoof Jan 03 '14 at 13:13

1 Answers1

6

Yes, behind a flag. See also the feature dashboard entry and V8 bug.

Navigate to chrome://flags/#enable-javascript-harmony to enable it.

Jeremy Roman
  • 16,137
  • 1
  • 43
  • 44
  • Can the flag be enabled on google chrome current version too?? – Mozak Jan 03 '14 at 04:45
  • Yes. But be aware that this is an experimental feature at the moment, and so support may be incomplete or buggy. Canary is likely to have a more recent implementation, but I'm not familiar enough with this feature to describe its status in each version except to point you at the dashboard and bug. – Jeremy Roman Jan 03 '14 at 04:47
  • Thanks Jeremy for the answer. – Mozak Jan 03 '14 at 05:25
  • Thanks, I was looking for experimenting with generators on a Chromebook and this did the trick! – Tomas Romero Oct 11 '14 at 04:31