How to denote generator methods?

Herby Vojčík herby at
Tue Jan 10 01:24:26 PST 2012


for a function, you can instead of

  method: function (args) { body },

use the convenient (and non-enumerating)

  method (args) { body }

in literal / class.

But for a generator

  gen: function* (args) { body }

what can you use to create a generator method?

  *gen (args) { body }

be possible?


More information about the es-discuss mailing list