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
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 39 Edge Full support 13 Firefox Full support 26 IE No support No Opera Full support 26 Safari ? WebView Android Full support 39 Chrome Android Full support 39 Firefox Android Full support 26 Opera Android Full support 26 Safari iOS ? Samsung Internet Android Full support 4.0 nodejs Full support Yes

Legend

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

相关链接