Comment #49 on issue 811 by [email protected]: Implement destructuring
https://code.google.com/p/v8/issues/detail?id=811#c49

The following revision refers to this bug:
https://chromium.googlesource.com/v8/v8.git/+/4273f66e9882f1239c6b7846c31730d47b870d81

commit 4273f66e9882f1239c6b7846c31730d47b870d81
Author: rossberg <[email protected]>
Date: Wed Aug 05 12:00:41 2015

[es6] Implement proper TDZ for parameters

Previously, examples like (({a = x}, x) => {})({}, 0) did not throw a ReferenceError like they should. This CL

- Splits up DeclareFormalParameters such that the formals can be recorded first and declared later.

- Declaration then takes the complete parameter list into account. If it is not simple, temporaries are introduced for all parameters.

- BuildParameterInitializationBlock desugars all parameters from non-simple lists into let-bindings.

- Refactored Pre/ParserFormalParameters, so that the arity information is no longer duplicated in Parser.

- Rest is currently handled specially, until rest-via-destructuring has landed.

[email protected], [email protected]
BUG=v8:811
LOG=N

Review URL: https://codereview.chromium.org/1259283002

Cr-Commit-Position: refs/heads/master@{#30025}

[modify] http://crrev.com/4273f66e9882f1239c6b7846c31730d47b870d81/src/parser.cc [modify] http://crrev.com/4273f66e9882f1239c6b7846c31730d47b870d81/src/parser.h [modify] http://crrev.com/4273f66e9882f1239c6b7846c31730d47b870d81/src/preparser.h [modify] http://crrev.com/4273f66e9882f1239c6b7846c31730d47b870d81/test/mjsunit/harmony/destructuring.js [modify] http://crrev.com/4273f66e9882f1239c6b7846c31730d47b870d81/test/test262-es6/test262-es6.status


--
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