Skip to content

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

Merged
bartlomieju merged 6 commits intodenoland:mainfrom
bartlomieju:v8_event_loop
Nov 22, 2023
Merged

fix: 'Promise was collected' error in REPL/jupyter#21272
bartlomieju merged 6 commits intodenoland:mainfrom
bartlomieju:v8_event_loop

Conversation

@bartlomieju
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

@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
@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