Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/async-arrow-function/dflt-params-duplicates.js

raw
1 // This file was procedurally generated from the following sources:
2 // - src/function-forms/dflt-params-duplicates.case
3 // - src/function-forms/syntax/async-arrow-function.template
4 /*---
5 description: It is a Syntax Error if BoundNames of FormalParameters contains any duplicate elements. (async arrow function expression)
6 esid: sec-async-arrow-function-definitions
7 features: [default-parameters]
8 flags: [generated]
9 negative:
10 phase: parse
11 type: SyntaxError
12 info: |
13 14.7 Async Arrow Function Definitions
14
15 AsyncArrowFunction :
16 ...
17 CoverCallExpressionAndAsyncArrowHead => AsyncConciseBody
18
19 AsyncConciseBody :
20 { AsyncFunctionBody }
21
22 ...
23
24 Supplemental Syntax
25
26 When processing an instance of the production AsyncArrowFunction :
27 CoverCallExpressionAndAsyncArrowHead => AsyncConciseBody the interpretation of
28 CoverCallExpressionAndAsyncArrowHead is refined using the following grammar:
29
30 AsyncArrowHead :
31 async ArrowFormalParameters
32
33 14.1.2 Static Semantics: Early Errors
34
35 StrictFormalParameters : FormalParameters
36
37 - It is a Syntax Error if BoundNames of FormalParameters contains any
38 duplicate elements.
39
40 FormalParameters : FormalParameterList
41
42 - It is a Syntax Error if IsSimpleParameterList of FormalParameterList is
43 false and BoundNames of FormalParameterList contains any duplicate
44 elements.
45
46 ---*/
47 throw "Test262: This statement should not be evaluated.";
48
49
50 (async (x = 0, x) => {
51
52 });