Skip to content

Conversation

@efekrskl
Copy link
Contributor

Fixes #46323

I see Event has a similar brand check (lib/internal/event_target.js:152) Should we also remove that one?

@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Dec 19, 2025
@efekrskl efekrskl force-pushed the fix/remove-eventtarget-custom-inspect-branding branch from 0530cf0 to 830ace5 Compare December 19, 2025 17:50
Comment on lines +15 to +17
assert.doesNotThrow(() => {
util.inspect(fakeEventTarget);
});
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
assert.doesNotThrow(() => {
util.inspect(fakeEventTarget);
});
util.inspect(fakeEventTarget);

Using assert.doesNotThrow() is discouraged and is prohibited by the linter.

Ideally, we can verify the output as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run.

3 participants