diff options
author | Linus Groh <mail@linusgroh.de> | 2022-05-05 09:05:52 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-05-05 22:40:57 +0200 |
commit | 09e263dd9c6544037ab44cf0523d23d6d2999b1d (patch) | |
tree | d654ee74b0c7a3db13f2afc9184decbee8d0075d /Userland/Demos | |
parent | dd547c3374d92607d6da90a78e3d39fb17fc32b0 (diff) | |
download | serenity-09e263dd9c6544037ab44cf0523d23d6d2999b1d.zip |
LibJS: Fix "prototype" property of generator functions, again
The change in 3ec0183 wasn't actually correct, the spec tells us to set
the "prototype" property of the function (created with a prototype of
%GeneratorFunction.prototype% itself) to a newly created object:
OrdinaryObjectCreate(%GeneratorFunction.prototype.prototype%)
Diffstat (limited to 'Userland/Demos')
0 files changed, 0 insertions, 0 deletions