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 (ECMA-262)
GeneratorFunction.prototype
Living Standard  

浏览器兼容

No compatibility data found. Please contribute data for "javascript.builtins.GeneratorFunction.prototype" (depth: 1) to the MDN compatibility data repository.

相关链接