aboutsummaryrefslogtreecommitdiffstats
path: root/src/function-forms/syntax/async-meth.template
blob: bec86025bf87e1a6a4289a4b86616c41920000b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (C) 2017 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
path: language/expressions/object/method-definition/async-meth-
name: async method
esid: sec-async-function-definitions
info: |
  14.6 Async Function Definitions

  AsyncMethod :
   async PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
features: [async-iteration]
---*/

({
  async *method(/*{ params }*/) {
    /*{ body }*/
  }
});