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

/*---
path: language/statements/async-function/
name: Async function declaration
esid: prod-AsyncFunctionDeclaration
info: |
  Async Function Definitions

  AsyncFunctionDeclaration:
    async [no LineTerminator here] function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
features: [async-functions]
---*/

async function fn() {
  /*{ body }*/
}