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): use primordials in ext/node/polyfills/internal/buffer.mjs #24993

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

petamoriken
Copy link
Contributor

Towards #24236

@bartlomieju
Copy link
Member

We effectively vendor this file. I'm not sure if it's worth using primordials here. Feels like it's gonna make updates a lot harder. That said we only update it a couple times per year, so maybe it's not such a big deal?

@petamoriken
Copy link
Contributor Author

IMHO, primordials are hard to introduce, but then updating the codes is not so hard.

@petamoriken
Copy link
Contributor Author

petamoriken commented Aug 12, 2024

Since Node.js also uses primordials, the diffs with the Deno impl may decrease and make it rather easy to update.
https://github.com/nodejs/node/blob/0301309493b2a4e80796517bdb46ec55202a4800/lib/internal/buffer.js

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.

2 participants