Updates:
        Cc: [email protected] [email protected] [email protected]

Comment #3 on issue 4212 by [email protected]: yield allowed as parameter name in arrow function in generator context
https://code.google.com/p/v8/issues/detail?id=4212

[-arv, as he has grazed on to greener pastures :) +adamk, conradw because hey, otherwise it's lonely]

I can initially plan on fixing this by adding a new flag to the classifier. We rename the ArrowFormalParameters production in the classifier to ArrowFormalParameterList, to avoid too much confusion with ArrowFormalParameter, the new production. Anywhere the parser would record a BindingPatternError it also signals an ArrowFormalParameter error, with the exception of these cases noted in test-parsing.cc:

  ({a} = {}) => {}
  ([x] = []) => {}

We additionally make any occurence of the yield token while in a generator record an ArrowFormalParameter error, to fix this bug.

There are about 35 places or so in preparser.h where we record binding pattern errors. This proposed approach will add ArrowFormalParameter errors to each of those sites, sadly. WDYT Andreas?

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to