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

描述

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

属性

AsyncFunction.constructor
默认值为 AsyncFunction.
AsyncFunction.prototype[@@toStringTag]
Returns "AsyncFunction".

规范

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

兼容性

Update compatibility data on GitHub
DesktopMobileServer
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung InternetNode.js
Basic supportChrome Full support 55Edge ? Firefox Full support 52IE No support NoOpera Full support 42Safari ? WebView Android ? Chrome Android Full support 55Edge Mobile ? Firefox Android Full support 52Opera Android Full support 42Safari iOS ? Samsung Internet Android Full support 6.0nodejs 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.

参见

文档标签和贡献者

此页面的贡献者: fscholz, wizardforcel, xygcxy
最后编辑者: fscholz,