archives

« Bugzilla Issues Index

#4206 — 25.2.4: 'name' property omitted from GeneratorInstance


25.2.4 describes exactly two properties of GeneratorFunction instances: 'length', and 'prototype'. It does not describe a 'name' property.

The spec introduces a `name` property for Function instances, and I can see no reason for GeneratorFunction instances to not also define this property. Additionally, the change log for Revision 20 (October 28, 2013) states:

> Added name property for functions created via function/generator/class
> declarations or binding initializers and assignment.

...but the change markup for that revision [1] only introduces the `name` property for Function instances (not GeneratorFunction instances).

[1] http://wiki.ecmascript.org/lib/exe/fetch.php?id=harmony%3Aspecification_drafts&cache=cache&media=harmony:working_draft_ecma-262_edition_6_10-28-13-rev20markup.pdf


fixed in rev37 editor's draft


In Rev37