Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/object/method-definition/async-gen-meth-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-meth.template
4 /*---
5 description: RestParameter does not support an initializer (async generator method)
6 esid: sec-asyncgenerator-definitions-propertydefinitionevaluation
7 features: [default-parameters, async-iteration]
8 flags: [generated]
9 negative:
10 phase: parse
11 type: SyntaxError
12 info: |
13 AsyncGeneratorMethod :
14 async [no LineTerminator here] * PropertyName ( UniqueFormalParameters )
15 { AsyncGeneratorBody }
16
17 1. Let propKey be the result of evaluating PropertyName.
18 2. ReturnIfAbrupt(propKey).
19 3. If the function code for this AsyncGeneratorMethod is strict mode code, let strict be true.
20 Otherwise let strict be false.
21 4. Let scope be the running execution context's LexicalEnvironment.
22 5. Let closure be ! AsyncGeneratorFunctionCreate(Method, UniqueFormalParameters,
23 AsyncGeneratorBody, scope, strict).
24 [...]
25
26
27 14.1 Function Definitions
28
29 Syntax
30
31 FunctionRestParameter[Yield] :
32
33 BindingRestElement[?Yield]
34
35 13.3.3 Destructuring Binding Patterns
36
37 Syntax
38
39 BindingRestElement[Yield] :
40
41 ...BindingIdentifier[?Yield]
42 ...BindingPattern[?Yield]
43
44 ---*/
45 throw "Test262: This statement should not be evaluated.";
46
47 0, {
48 async *method(...x = []) {
49
50 }
51 };