GeneratorFunction.prototype属性是GeneratorFunction的原型对象。

描述

GeneratorFunction 的实例对象都继承于 GeneratorFunction.prototype. GeneratorFunction.prototype 不能被修改。

属性

GeneratorFunction.constructor
初始值是 GeneratorFunction.
GeneratorFunction.prototype.prototype
值是 %GeneratorPrototype%.

规范

Specification Status Comment
ECMAScript 2015 (6th Edition, ECMA-262)
GeneratorFunction.prototype
Standard Initial definition.
ECMAScript Latest Draft (ECMA-262)
GeneratorFunction.prototype
Draft  

浏览器兼容

Update compatibility data on GitHub
DesktopMobileServer
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung InternetNode.js
Basic supportChrome Full support YesEdge Full support YesFirefox Full support 26IE No support NoOpera Full support YesSafari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support 26Opera Android ? Safari iOS ? Samsung Internet Android Full support Yesnodejs ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

相关链接

文档标签和贡献者

此页面的贡献者: fscholz, shinexyt, zhangchen, webery
最后编辑者: fscholz,