Comment #9 on issue 4395 by ad...@chromium.org: assignments in default
parameter initializers
https://code.google.com/p/v8/issues/detail?id=4395
Here's an alternative, crazy idea: always lazy-compile arrow functions.
When lazy-compiled, everything works fine, since we re-parse the
parameters, this time in the right scope. You can see this by testing:
var f = (a,b=a)=>[a,b];
f(10);
which works fine. It's only the immediately-executed sort of arrow function
that ends up being eagerly compiled.
A less-aggressive version of this hack would be to always lazy-compile
arrow functions with non-simple parameter lists.
--
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
v8-dev@googlegroups.com
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 v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.