-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
string_decoder: refactor to use private properties #47544
Conversation
I don't think so. That has previously stopped other things in core from being converted to a class. |
e93f0f6
to
c856ec5
Compare
Why did you abort the benchmark? |
@targos There was a more urgent benchmark at that time. I'll re-run it after I fix the errors in this current pull request, and CIGTM was aborted due to Node 20. |
c856ec5
to
fd1ed71
Compare
Unfortunately I think we need to take this through a proper runtime deprecation cycle before we can make this change. There are older versions of iconv-lite, and I'm sure other modules that this will break. |
Mainly the changes contain converting decoder into a class and use private properties for brand validation. It comes with a caveat that I want to ask the community feedback and help.
With the following changes, the following test does not work, and is removed. Therefore, it makes this pull request a breaking change? Can we avoid that? I'm adding
needs-cigtm
just in case...