-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Tracking Issue: process.binding to internalBinding #22160
Comments
updated to include all usage of NODE_BUILTIN_MODULE_CONTEXT_AWARE |
I've got |
@ChALkeR would it be possible to get info about the relative usage of all of these? i'm assuming there are some like serdes we can kill right away and others like util that will take longer. |
I tried doing zlib but it broke npm. |
Just double checking, should all migration PRs should be marked as semver-major? |
Unfortunately that's likely the best thing. |
For some of this it's likely going to be quite tricky to have a proper migration strategy in place given that moving something over to |
PR-URL: nodejs#22161 Refs: nodejs#22160 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
I would also like to contribute here. Can you please give me some heads up? |
Hey, I've been trying to move buffer to internalBinding to try and help out and I think I've gotten close but You can see the branch that I'm working on here. Any help on maybe how to fix these errors/why they are happening would be very much appreciated 😄. Sorry for the bother if my changes are incorrect or this is not allowed. |
In places of process.binding('inspector'), migrate code to adapt internalBinding. PR-URL: #24931 Refs: #22160 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Now the |
Hi, @starkwang. it appears that #24931 took care of |
I think we can close this now. |
In places of process.binding('inspector'), migrate code to adapt internalBinding. PR-URL: nodejs#24931 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
In places of process.binding('inspector'), migrate code to adapt internalBinding. PR-URL: #24931 Refs: #22160 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Refs: nodejs#22160 PR-URL: nodejs#22478 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Denys Otrishko <[email protected]>
PR-URL: nodejs#23400 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
In places of process.binding('inspector'), migrate code to adapt internalBinding. PR-URL: nodejs#24931 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
In places of process.binding('inspector'), migrate code to adapt internalBinding. PR-URL: #24931 Refs: #22160 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Refs: #22160 PR-URL: #22478 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Denys Otrishko <[email protected]> Backport-PR-URL: #25446
PR-URL: #23400 Refs: #22160 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Backport-PR-URL: #25446 Reviewed-By: Anna Henningsen <[email protected]>
In places of process.binding('inspector'), migrate code to adapt internalBinding. PR-URL: #24931 Refs: #22160 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Backport-PR-URL: #25446
PR-URL: nodejs#23400 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
In places of process.binding('inspector'), migrate code to adapt internalBinding. PR-URL: nodejs#24931 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
In places of process.binding('inspector'), migrate code to adapt internalBinding. PR-URL: nodejs#24931 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Refs: nodejs#22160 PR-URL: nodejs#22478 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Denys Otrishko <[email protected]> Backport-PR-URL: nodejs#25446
PR-URL: nodejs#23400 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Backport-PR-URL: nodejs#25446 Reviewed-By: Anna Henningsen <[email protected]>
In places of process.binding('inspector'), migrate code to adapt internalBinding. PR-URL: nodejs#24931 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Backport-PR-URL: nodejs#25446
Migrate various modules from using process.binding to internalBinding. PR-URL: nodejs#24952 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
Migrate various modules from using process.binding to internalBinding. PR-URL: nodejs#24952 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
Migrate various modules from using process.binding to internalBinding. PR-URL: #24952 Refs: #22160 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
Moving from
process.binding()
tointernalBinding()
will be a significant effort. There are hundreds ofprocess.binding()
uses inside core and many many userland references. It's going to take a while to convert everything.TODO
inspector
(this one is quite non-trivial... will require additional thought)Done
async_wrap
src: move process.binding('async_wrap') internal #22469buffer
buffer: move process.binding('buffer') to internalBinding #22370cares_wrap
dns: make process.binding('cares_wrap') internal #22474crypto
crypto: move process.binding('crypto') to internal #22426config
src,lib: make process.binding('config') internal #23400constants
src,lib: movenatives
andconstants
tointernalBinding()
#23663contextify
vm: move process.binding('contextify') to internalBinding #22419fs
fs: make process.binding('fs') internal #22478fs_event_wrap
fs: make fs_event_wrap binding internal #22480http2
http2: move process.binding('http2') to internalBinding #22328http_parser
http_parser: move process.binding('http_parser') to internalBinding #22329icu
icu: make process.binding('icu') internal #23234js_stream
js_stream: move process.binding('js_stream') to internalBinding #22239natives
src,lib: movenatives
andconstants
tointernalBinding()
#23663os
os: move process.binding('os') to internalBinding #25087performance
src: move process.binding('performance') to internalBinding #22029pipe_wrap
lib: make pipe_wrap binding internal #22482process_wrap
child_process: make process_wrap binding internal #22479serdes
v8: move serdes to internalBinding #22161signal_wrap
src: move process.binding('signal_wrap') to internalBinding #22290spawn_sync
spawn_sync: move process.binding('spawn_sync') to internalBinding #22260stream_wrap
tcp_wrap
src: move process.binding('tcp_wrap') to internal #22432tls_wrap
crypto: move process.binding('tls_wrap') internal #22429trace_events
trace_events: move trace_events to internalBinding #22159tty_wrap
tty: make process.binding('tty_wrap') internal #22477udp_wrap
dgram: make process.binding('udp_wrap') internal #22475url
url: move process.binding('url') to internalBinding #22204util
util: make util binding internal #22675uv
uv: move process.binding('uv') to internalBinding #22163v8
v8: move process.binding('v8') to internalBinding #22288zlib
(removingprocess.binding('zlib')
breaks npm) zlib: move process.binding('zlib') to internalBinding #23307The text was updated successfully, but these errors were encountered: