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 |
浏览器兼容
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out
https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | Server | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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