W3cubDocs

/JavaScript

AsyncFunction.prototype

The AsyncFunction.prototype property represents the AsyncFunction prototype object.

Description

AsyncFunction objects inherit from AsyncFunction.prototype. AsyncFunction.prototype cannot be modified.

Properties

AsyncFunction.constructor
The initial value is AsyncFunction.
AsyncFunction.prototype[@@toStringTag]
Returns "AsyncFunction".

Specifications

Specification Status Comment
ECMAScript Latest Draft (ECMA-262)
The definition of 'AsyncFunction.prototype' in that specification.
Draft Initial definition in ES2017.

Browser compatibilityUpdate compatibility data on GitHub

Desktop
Chrome Edge Firefox Internet Explorer Opera Safari
Basic support 55 ? 52 No 42 ?
Mobile
Android webview Chrome for Android Edge Mobile Firefox for Android Opera for Android iOS Safari Samsung Internet
Basic support ? 55 ? 52 42 ? 6.0
Server
Node.js
Basic support 7.6.0
7.6.0
7.0.0
Disabled
Disabled From version 7.0.0: this feature is behind the --harmony runtime flag.

See also

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AsyncFunction/prototype