Yes, we talked about * before the name (after the imaginary 'function' keyword), see

https://mail.mozilla.org/pipermail/es-discuss/2011-October/017314.html

/be

January 13, 2012 2:15 AM
Hello!

In object literal, one can define method by
   method (args) {
     body
   }
which is nice shortcut for 'method: function (args) { body },' with added value of method being non-enumerable. But there is no shortcut for 'gen: function* (args) { body },'.

What about extending the object literal notation with
   *method (args) {
     body
   }
to define a generator method?

Herby

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to