GeneratorFunction.prototype

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 AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetNode.js
prototypeChrome Full support 39Edge Full support 13Firefox Full support 26IE No support NoOpera Full support 26Safari Full support 10WebView Android Full support 39Chrome Android Full support 39Firefox Android Full support 26Opera Android Full support 26Safari iOS Full support 10Samsung Internet Android Full support 4.0nodejs Full support Yes

Legend

Full support  
Full support
No support  
No support

相关链接