| // Copyright (C) 2016 the V8 project authors. All rights reserved. | |
| // This code is governed by the BSD license found in the LICENSE file. | |
| /*--- | |
| desc: RestParameter does not support an initializer | |
| template: syntax | |
| info: | | |
| 14.1 Function Definitions | |
| Syntax | |
| FunctionRestParameter[Yield] : | |
| BindingRestElement[?Yield] | |
| 13.3.3 Destructuring Binding Patterns | |
| Syntax | |
| BindingRestElement[Yield] : | |
| ...BindingIdentifier[?Yield] | |
| ...BindingPattern[?Yield] | |
| features: [default-parameters] | |
| negative: | |
| phase: parse | |
| type: SyntaxError | |
| ---*/ | |
| //- setup | |
| $DONOTEVALUATE(); | |
| //- params | |
| ...x = [] |