Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 'Promise was collected' error in REPL/jupyter #21272

Merged
merged 6 commits into from Nov 22, 2023

Conversation

bartlomieju
Copy link
Member

@bartlomieju bartlomieju commented Nov 20, 2023

Fixes #20528

Comment on lines +305 to +308
// NOTE(bartlomieju): this is an important bit; we don't want to pump V8
// message loop here, so that GC won't run. Otherwise, the resulting
// object might be GC'ed before we have a chance to inspect it.
pump_v8_message_loop: false,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the fix :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow. Thanks for noting it so heavily here.

@bartlomieju bartlomieju marked this pull request as ready for review November 20, 2023 23:41
Copy link
Member

@mmastrac mmastrac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM assuming test passes!

@bartlomieju bartlomieju merged commit a8c24d2 into denoland:main Nov 22, 2023
14 checks passed
@bartlomieju bartlomieju deleted the v8_event_loop branch November 22, 2023 02:45
zifeo pushed a commit to metatypedev/deno that referenced this pull request Nov 22, 2023
crowlKats pushed a commit that referenced this pull request Nov 24, 2023
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.

[repl][jupyter-kernel] {"code":-32000,"message":"Promise was collected"}
3 participants