archives

« Bugzilla Issues Index

#2654 — Is a [no LineTerminator here] needed in the arrow grammar?


We decided at the last meeting that for the async feature, we want to maintain forward compatibility with the option to elide "()" in arrows fucntions.

As noted in https://github.com/lukehoban/ecmascript-asyncawait/issues/13#issuecomment-40126866 we would have to add an additinal [no LineTerminator here] to the ES6 arrow grammar to ensure we have this option.

<quote>

If we're really trying to preserve the option of elided arrow params, do we want to add that second [no LineTerminator here] restriction to regular arrow functions in ES6? (I don't see that restriction in the current draft.)

// Successfully parses with ES6 grammar
x = y
=> 1;

</quote>


fixed in rev24 editor's draft


fixed in rev24