Debian Codegraph @

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

raw
1 // This file was procedurally generated from the following sources:
2 // - src/function-forms/dflt-params-rest.case
3 // - src/function-forms/syntax/async-arrow-function.template
4 /*---
5 description: RestParameter does not support an initializer (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 Function Definitions
34
35 Syntax
36
37 FunctionRestParameter[Yield] :
38
39 BindingRestElement[?Yield]
40
41 13.3.3 Destructuring Binding Patterns
42
43 Syntax
44
45 BindingRestElement[Yield] :
46
47 ...BindingIdentifier[?Yield]
48 ...BindingPattern[?Yield]
49
50 ---*/
51 throw "Test262: This statement should not be evaluated.";
52
53
54 (async (...x = []) => {
55
56 });