-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
buffer: make File cloneable #47613
buffer: make File cloneable #47613
Conversation
Since I had to move back to using symbols instead of private properties for brand checking, the error for invalid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still think we should find an elegant solution to this issue, and not revert to using symbols.
Would you really prefer that the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I gave it a go and try to use private fields, I didn't manage to get anything working, using a Symbol
seems the correct option for now.
I'm not sure it's actually a semver-major change, as it's still going to be a TypeError
, we're adding a code
property not modifying it, and the error message is not covered by semver rules in our policy.
Can you add an entry in the history section to track what version has cloneable File
implementation?
Lines 5065 to 5074 in eb17645
## Class: `File` | |
<!-- YAML | |
added: | |
- v19.2.0 | |
- v18.13.0 | |
changes: | |
- version: v20.0.0 | |
pr-url: https://github.com/nodejs/node/pull/47153 | |
description: No longer experimental. |
@aduh95 I agree and share your concerns, and I am, too, interested in a web-compatible Unfortunately, I can't look into this issue in the next few days, but I'll try to look as soon as possible. If you think we should proceed with the current approach or in a time-sensitive manner, we can always add |
@anonrig here's what the collaborator guide says about objections: node/doc/contributing/collaborator-guide.md Lines 153 to 156 in 6c76d7e
If you plan on being irresponsive in the following days, blocking that PR is really not a good timing.
That's simply not true, this PR only changes the
Fair enough, that's not a reason for blocking the PR though, and Khafra did ping the buffer team already. If this PR lands, that doesn't mean the implementation will be frozen, someone can open a follow up PR. IMO getting closer to web compat is more important for our users than the symbol vs private fields debate that have no effect for them; if you disagree that's fine of course but then please say so explicitly, it's always better to have thorough requests for change. |
Dismissing due to being unavailable in the next couple of days and respecting the collaborator guide.
FWIW, something I sometimes do is leave a request-for-changes with a comment saying something like "Once X and Y happen, feel free to dismiss this request-for-change. You don't need to ping me or anything." |
@KhafraDev Longstanding annoyance with our CI is that it does not handle merge commits well. Can you rebase/force-push to this branch to get rid of the merge commit? |
ad4d427
to
3d386a5
Compare
Thanks! Will keep that in mind for the future :) |
@nodejs/tsc since this is semver-major |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Landed in 17fd327 |
Fixes: #47612