Closed GoogleCodeExporter closed 9 years ago
Per Rev 30 (Dec 24 2014) of the draft spec, the relevant grammar is:
Section 14.3
MethodDefinition[Yield] :
PropertyName[?Yield] ( StrictFormalParameters ) { FunctionBody }
GeneratorMethod[?Yield]
get PropertyName[?Yield] ( ) { FunctionBody }
set PropertyName[?Yield] ( PropertySetParameterList ) { FunctionBody }
PropertySetParameterList :
FormalParameter
Original comment by ariya.hi...@gmail.com
on 12 Jan 2015 at 3:41
See also
https://people.mozilla.org/~jorendorff/es6-draft.html#sec-method-definitions.
Original comment by ariya.hi...@gmail.com
on 12 Jan 2015 at 3:41
ES6 method definition.
https://github.com/ariya/esprima/commit/a86646d3b0
ES6 method definition: update baseline syntax for the parsing corpus.
https://github.com/ariya/esprima/commit/1fb64605f2
Original comment by ariya.hi...@gmail.com
on 13 Jan 2015 at 4:16
Original issue reported on code.google.com by
ariya.hi...@gmail.com
on 12 Jan 2015 at 3:39