Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/async-generator/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-gen-func-expr.template
4 /*---
5 description: RestParameter does not support an initializer (async generator function expression)
6 esid: sec-asyncgenerator-definitions-evaluation
7 features: [default-parameters, async-iteration]
8 flags: [generated]
9 negative:
10 phase: parse
11 type: SyntaxError
12 info: |
13 AsyncGeneratorExpression : async [no LineTerminator here] function * ( FormalParameters ) {
14 AsyncGeneratorBody }
15
16 [...]
17 3. Let closure be ! AsyncGeneratorFunctionCreate(Normal, FormalParameters,
18 AsyncGeneratorBody, scope, strict).
19 [...]
20
21
22 14.1 Function Definitions
23
24 Syntax
25
26 FunctionRestParameter[Yield] :
27
28 BindingRestElement[?Yield]
29
30 13.3.3 Destructuring Binding Patterns
31
32 Syntax
33
34 BindingRestElement[Yield] :
35
36 ...BindingIdentifier[?Yield]
37 ...BindingPattern[?Yield]
38
39 ---*/
40 throw "Test262: This statement should not be evaluated.";
41
42
43 0, async function*(...x = []) {
44
45 };