Chromium Code Reviews
Description[es6] implement default/optional parameters (WIP / comments)
Partial refactor of older bitrotten optional params patch
More work on this over the next few weeks
TODO:
- new scope for parameter expressions
- proper parameter list TDZ
- make sure AST numbering is done before initializing values
- TF support
- Function.length calculation needs an update
EXTRAS (might be good to land in separate intermediate patches):
- ParameterKind unifies ways of denoting "special" parameter types --- hmm, it's less nice to use because of the clang-format restrictions on non-explicit single-parameter constructors :|
- handy AstValueFactory::IsUndefined() helper (nope, it's awful, and Expression::IsUndefinedLiteral() is good --- canning that :>)
BUG=v8:2160
R=
LOG=N
Patch Set 1 #
Total comments: 14
Patch Set 2 : No explicit constructors :'( #Patch Set 3 : partially fix scoping issue (still needs tdz on parameter refs), support variable proxies/functions #Patch Set 4 : Fix typo + support ObjectLiteral / ArrayLiteral defaults #Patch Set 5 : Experimental not-quite-TDZ support #
Messages
Total messages: 15 (3 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||