dflt-params-rest.js (1297B)
1 // |reftest| error:SyntaxError 2 // This file was procedurally generated from the following sources: 3 // - src/function-forms/dflt-params-rest.case 4 // - src/function-forms/syntax/async-arrow-function.template 5 /*--- 6 description: RestParameter does not support an initializer (async arrow function expression) 7 esid: sec-async-arrow-function-definitions 8 features: [default-parameters] 9 flags: [generated] 10 negative: 11 phase: parse 12 type: SyntaxError 13 info: | 14 14.7 Async Arrow Function Definitions 15 16 AsyncArrowFunction : 17 ... 18 CoverCallExpressionAndAsyncArrowHead => AsyncConciseBody 19 20 AsyncConciseBody : 21 { AsyncFunctionBody } 22 23 ... 24 25 Supplemental Syntax 26 27 When processing an instance of the production AsyncArrowFunction : 28 CoverCallExpressionAndAsyncArrowHead => AsyncConciseBody the interpretation of 29 CoverCallExpressionAndAsyncArrowHead is refined using the following grammar: 30 31 AsyncArrowHead : 32 async ArrowFormalParameters 33 34 14.1 Function Definitions 35 36 Syntax 37 38 FunctionRestParameter[Yield] : 39 40 BindingRestElement[?Yield] 41 42 13.3.3 Destructuring Binding Patterns 43 44 Syntax 45 46 BindingRestElement[Yield] : 47 48 ...BindingIdentifier[?Yield] 49 ...BindingPattern[?Yield] 50 51 ---*/ 52 $DONOTEVALUATE(); 53 54 55 (async (...x = []) => { 56 57 });