ariya/esprima — pull request #260 by DmitrySoshnikov (2014-06-01 18:10:39+00:00)
Title: Harmony pattern param default values

[ES6] Pattern params default values

Per latest ES6 draft [1], function parameters that are destructuring patterns may have default values. This diff allows parsing `AssignmentExpression` that follows the pattern and `=`.

See tests attached for details.

[1] https://people.mozilla.org/~jorendorff/es6-draft.html#sec-function-definitions

```
FormalParameter : BindingElement

BindingElement : BindingPattern Initializer[opt]
```

Related issue: http://code.google.com/p/esprima/issues/detail?id=555