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

/*---
path: language/expressions/object/method-definition/async-
name: Async method
esid: prod-AsyncMethod
info: |
  Async Function Definitions

  AsyncMethod :
    async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
features: [async-functions]
---*/

var obj = {
  async method() {
    /*{ body }*/
  }
};