Hi,

Given "function* g() { yield 1; }", are these equivalent?

  new g();
  g();

Somehow I had assumed that /calling/ would be the normal way to
instantiate a generator, but I see "new" in
http://wiki.ecmascript.org/doku.php?id=meetings:proposed_generator_class_hierarcy_nov_2013.png.

Thanks,

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

Reply via email to