summaryrefslogtreecommitdiff
path: root/src/async-functions/syntax/async-arrow.template
blob: 14ec6f84ccacb62e2b421368e231c4f17c3256bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (C) 2017 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
path: language/expressions/async-arrow-function/
name: Async arrow function
esid: prod-AsyncArrowFunction
info: |
  Async Arrow Function Definitions

  AsyncArrowFunction[In, Yield, Await]:
    async [no LineTerminator here] AsyncArrowBindingIdentifier[?Yield] [no LineTerminator here] => AsyncConciseBody[?In]
    CoverCallExpressionAndAsyncArrowHead[?Yield, ?Await] [no LineTerminator here] => AsyncConciseBody[?In]

  AsyncConciseBody[In]:
    { AsyncFunctionBody }
features: [async-functions]
---*/

async() => {
  /*{ body }*/
};