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(ext/node): better support for node:diagnostics_channel module #24088

Merged
merged 10 commits into from
Jun 14, 2024

Conversation

bartlomieju
Copy link
Member

@bartlomieju bartlomieju commented Jun 3, 2024

Closes #24060

Copy link
Member

@littledivy littledivy left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@devsnek devsnek left a comment

Choose a reason for hiding this comment

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

overall lgtm

nextTick(() => {
// TODO(bartlomieju): in Node.js this is using `triggerUncaughtException` API, need
// to clarify if we need that or if just throwing the error is enough here.
throw err;
Copy link
Member

Choose a reason for hiding this comment

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

i think window.reportError is mostly the equiv in deno? though i guess maybe this throw ends up there anyway?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, good point. Let me see if changing that allows to enable more tests

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I believe it ends up there anyway. I'm gonna leave this TODO for now

@bartlomieju bartlomieju merged commit 78b12a4 into denoland:main Jun 14, 2024
17 checks passed
@bartlomieju bartlomieju deleted the node_diagnostic_channel branch June 14, 2024 22:07
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.

node:diagnostic_channel misses DiagnosticChannel::tracingChannel API
3 participants