Skip to content

Fix enter and exit of frames under generators to be matched pairs.#2429

Merged
gbrail merged 2 commits into
mozilla:masterfrom
aardvark179:aardvark179-enter-exit-scope
Jun 13, 2026
Merged

Fix enter and exit of frames under generators to be matched pairs.#2429
gbrail merged 2 commits into
mozilla:masterfrom
aardvark179:aardvark179-enter-exit-scope

Conversation

@aardvark179

@aardvark179 aardvark179 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

This change fixed the calls of enter and exit frame with a generator to be more sensible. We enter the frame whether we enter or resume the generator, and we call exit frame whenever we yield or exit the generator.

This fixes #2099.

@gbrail

gbrail commented Jun 13, 2026

Copy link
Copy Markdown
Collaborator

This seems straightforward to me, thanks!

@gbrail
gbrail merged commit 52396a5 into mozilla:master Jun 13, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mismatched calls to enterFrame and exitFrame when using generators.

2 participants