Skip to content

Releases: facebook/regenerator

v0.2.9

06 Nov 19:11
Compare
Choose a tag to compare

Context functions (the inner functions wrapped by wrapGenerator) are now named when possible for more readable stack traces, thanks to @radford.

Fixed a bug with catch parameter renaming that caused the transformer to abort when a nested catch parameter shadowed the parameter of an outer catch block: #56, #57.

v0.2.8

02 Nov 20:02
Compare
Choose a tag to compare

Now supporting wrapGenerator.isGeneratorFunction via #55. In particular, for any generator function

function *gen() { ... }

it is now the case that

gen.constructor.name === "GeneratorFunction"

Thanks to @TooTallNate for advocating for this change.

v0.2.7

02 Nov 06:38
Compare
Choose a tag to compare

Made yield* expressions evaluate to the value returned (if any) by the child generator, after that problem was reported in #52 by @Raynos. Fix implemented in #54.

v0.2.6

01 Nov 21:15
Compare
Choose a tag to compare

Fixed a bug involving delegated yield* statements that throw uncaught exceptions: #50.

For those of you curious about transformer implementation details, the final case in the generated switch statement can now be jumped to by setting context.next = "end", which is especially useful in the runtime, since it generally doesn't know what the offset of the final case will be.

v0.2.5

30 Oct 19:57
Compare
Choose a tag to compare

Fixed a bug where unqualified function calls would sometimes receive the wrong this object. The value of this should have been the global object, but typically it was the Context object, which is something we generally don't want to leak into external code.

v0.2.4

28 Oct 19:09
Compare
Choose a tag to compare

Fixed a bug in the .throw method of generators that sometimes caused an infinite loop (#44).

v0.2.3

25 Oct 15:32
Compare
Choose a tag to compare

Removed dependency on browserify and made the regenerator function accept an options object parameter. Currently the only recognized option is includeRuntime.