blob: fb09563e97fe553cbadbbe8b9bc48d6ef4f382fd [file] [log] [blame] [edit]
// 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(/*{ params }*/) {
/*{ body }*/
}
};
// Stores a reference `asyncFn` for case evaluation
let asyncFn = obj.method;