AsyncFunction.prototype

AsyncFunction.prototype 属性表示 AsyncFunction 的原型对象。

描述

AsyncFunction 对象继承自 AsyncFunction.prototypeAsyncFunction.prototype 不能被修改。

属性

AsyncFunction.constructor
默认值为 AsyncFunction
AsyncFunction.prototype[@@toStringTag]
返回 "AsyncFunction"。

规范

Specification Status Comment
ECMAScript Latest Draft (ECMA-262)
AsyncFunction.prototype
Draft 最初定义在ES2017.

兼容性

Update compatibility data on GitHub
Desktop Mobile Server
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet Node.js
prototype Chrome Full support 55 Edge Full support 15 Firefox Full support 52 IE No support No Opera Full support 42 Safari ? WebView Android Full support 55 Chrome Android Full support 55 Firefox Android Full support 52 Opera Android Full support 42 Safari iOS ? Samsung Internet Android Full support 6.0 nodejs Full support 7.6.0
Full support 7.6.0
Full support 7.0.0
Disabled
Disabled From version 7.0.0: this feature is behind the --harmony runtime flag.

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
User must explicitly enable this feature.
User must explicitly enable this feature.

参见