GeneratorFunction.prototype
GeneratorFunction.prototype
GeneratorFunction.prototype
属性是GeneratorFunction
的原型对象。
描述
GeneratorFunction
的实例对象都继承于 GeneratorFunction.prototype
.GeneratorFunction.prototype
不能被修改。
属性
GeneratorFunction.constructor
初始值是GeneratorFunction
.
规范
Specification | Status | Comment |
---|---|---|
ECMAScript 2015 (6th Edition, ECMA-262)The definition of 'GeneratorFunction.prototype' in that specification. | Standard | Initial definition. |
ECMAScript 2017 Draft (ECMA-262)The definition of 'GeneratorFunction.prototype' in that specification. | Draft | |
浏览器兼容性
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | (Yes) | 26 (26) | ? | ? | ? |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | ? | (Yes) | 26 (26) | ? | ? | ? |