| 1 |
// This file was procedurally generated from the following sources: |
| 2 |
// - src/function-forms/dflt-params-rest.case |
| 3 |
// - src/function-forms/syntax/async-meth.template |
| 4 |
/*--- |
| 5 |
description: RestParameter does not support an initializer (async method) |
| 6 |
esid: sec-async-function-definitions |
| 7 |
features: [default-parameters, async-iteration] |
| 8 |
flags: [generated] |
| 9 |
negative: |
| 10 |
phase: parse |
| 11 |
type: SyntaxError |
| 12 |
info: | |
| 13 |
14.6 Async Function Definitions |
| 14 |
|
| 15 |
AsyncMethod : |
| 16 |
async PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody } |
| 17 |
|
| 18 |
|
| 19 |
14.1 Function Definitions |
| 20 |
|
| 21 |
Syntax |
| 22 |
|
| 23 |
FunctionRestParameter[Yield] : |
| 24 |
|
| 25 |
BindingRestElement[?Yield] |
| 26 |
|
| 27 |
13.3.3 Destructuring Binding Patterns |
| 28 |
|
| 29 |
Syntax |
| 30 |
|
| 31 |
BindingRestElement[Yield] : |
| 32 |
|
| 33 |
...BindingIdentifier[?Yield] |
| 34 |
...BindingPattern[?Yield] |
| 35 |
|
| 36 |
---*/ |
| 37 |
throw "Test262: This statement should not be evaluated."; |
| 38 |
|
| 39 |
|
| 40 |
({ |
| 41 |
async *method(...x = []) { |
| 42 |
|
| 43 |
} |
| 44 |
}); |