Skip to content

Instantly share code, notes, and snippets.

@dherman
Last active December 14, 2015 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dherman/5145925 to your computer and use it in GitHub Desktop.
Save dherman/5145925 to your computer and use it in GitHub Desktop.
// {
// next: () -> { done: false, value: any }
// | { done: true[, value: any] }
// }
var i1 = (function *f() {
return;
})();
'value' in i1.next();
var i2 = (function *g() {
})();
'value' in i2.next();
var i3 = (function* h() {
return (void 0);
})();
'value' in i3.next();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment