mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
6f3144c4e8
Add a Generator constructor, like the Function constructor. Define the GeneratorFunctionPrototype, GeneratorFunction, and GeneratorObjectPrototype meta-objects. When cloning or creating a star generator, give it GeneratorFunctionPrototype as its prototype. Each star generator function has a ".prototype" property, which has GeneratorObjectPrototype as its prototype. That prototype does not have a ".constructor" link. If Function.prototype.toSource is called on a non-function, chain up to Object.prototype.toSource instead. Prototypes of generator objects are no longer made with GeneratorObject::class_. This allows us to elide some "null" checks from bug 352885. Instead calling a generator on a method now signals a typeerror. Make the "send" generator method a simple alias to "next". |
||
---|---|---|
.. | ||
ductwork/debugger | ||
examples | ||
ipc | ||
jsd | ||
public | ||
src | ||
xpconnect |