| 1 |
// This file was procedurally generated from the following sources: |
| 2 |
// - src/function-forms/dflt-params-duplicates.case |
| 3 |
// - src/function-forms/syntax/async-meth.template |
| 4 |
/*--- |
| 5 |
description: It is a Syntax Error if BoundNames of FormalParameters contains any duplicate elements. (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.2 Static Semantics: Early Errors |
| 20 |
|
| 21 |
StrictFormalParameters : FormalParameters |
| 22 |
|
| 23 |
- It is a Syntax Error if BoundNames of FormalParameters contains any |
| 24 |
duplicate elements. |
| 25 |
|
| 26 |
FormalParameters : FormalParameterList |
| 27 |
|
| 28 |
- It is a Syntax Error if IsSimpleParameterList of FormalParameterList is |
| 29 |
false and BoundNames of FormalParameterList contains any duplicate |
| 30 |
elements. |
| 31 |
|
| 32 |
---*/ |
| 33 |
throw "Test262: This statement should not be evaluated."; |
| 34 |
|
| 35 |
|
| 36 |
({ |
| 37 |
async *method(x = 0, x) { |
| 38 |
|
| 39 |
} |
| 40 |
}); |