Skip to content

Instantly share code, notes, and snippets.

@wtfil
Created November 24, 2013 12:31
Show Gist options
  • Save wtfil/7626765 to your computer and use it in GitHub Desktop.
Save wtfil/7626765 to your computer and use it in GitHub Desktop.
check generator support in javascript
var supported = true;
try {
eval('(function *() {})');
} catch (e) {
supported = false;
}
console.log(supported);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment