Skip to content

fix(ext/node): use primordials in ext/node/polyfills/internal/dgram.ts #29204

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

Merged
merged 2 commits into from
May 8, 2025

Conversation

jbronder
Copy link
Contributor

@jbronder jbronder commented May 7, 2025

Towards #24236. Replaces Symbol as well as as Function and Map instance methods with the primordial equivalents. A "prefer-primordial" ignore comment was added to the handle.bind method call within the _createSocketHandle function since this is a method call on a UDP instance instead of a bind call on a Function object.

} else {
err = handle.open(fd);
}
} else if (port || address) {
// deno-lint-ignore prefer-primordials
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a comment here that states that this is a false positive

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure thing! I can capture this in a forthcoming PR if you'd like.

@bartlomieju bartlomieju merged commit ac42843 into denoland:main May 8, 2025
18 checks passed
@jbronder jbronder deleted the dgram_internal_primordial branch May 12, 2025 23:17
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.

3 participants