Comment #3 on issue 3898 by [email protected]: sloppy mode 'const' that
shadows generator method arg does not throw SyntaxError ('let' does)
https://code.google.com/p/v8/issues/detail?id=3898
So 'let' triggers an error because it's an ES6 keyword, but 'const' does
not, because v8 has its own non-standard implementation of const?
cf. https://code.google.com/p/v8/issues/detail?id=327
It's OK by me if you want to close this as a duplicate; I just wanted to
note that this conflicts with ES6, since the ES6 demands strict handling of
the arguments of a generator method. (See:
https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generator-function-definitions-static-semantics-early-errors
)
--
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.