| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Thanks for the insight. Reverted back to process.binding in lib/stream.js & deps/. |
Sorry, something went wrong.
|
Thanks for the feedback, @joyeecheung. Updated per suggestions. Please review again at convenience. |
Sorry, something went wrong.
|
Hi reviewer(s), Following up on this PR w. a rebase, and ran into "make lint" error: Running JS linter... /Users/bchen/github/node/test/parallel/test-accessor-properties.js 58:27 error Unused eslint-disable directive (no problems were reported from 'node-core/crypto-check') ✖ 1 problem (1 error, 0 warnings) The source of test/parallel/test-accessor-properties.js is: if (common.hasCrypto) { // eslint-disable-line node-core/crypto-check
Is there any suggestion how to resolve this make lint error w. eslint-disable? (The error shows "Unused", which seems to be a removal. But want to confirm w. your help. Thank you in advance!) |
Sorry, something went wrong.
|
@BeniCheni I think you'll need #25395. |
Sorry, something went wrong.
Sorry, something went wrong.
Use of process.binding() has largely been replaced by internalBinding(). This commit updates the custom crypto check ESLint rule to check for both process.binding() and internalBinding(). Refs: nodejs#24952 PR-URL: nodejs#25395 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
|
Hi reviewer(s), friendly reminder rebased after #25395, and CI is “green” again to further review. Thanks! |
Sorry, something went wrong.
Use of process.binding() has largely been replaced by internalBinding(). This commit updates the custom crypto check ESLint rule to check for both process.binding() and internalBinding(). Refs: #24952 PR-URL: #25395 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Use of process.binding() has largely been replaced by internalBinding(). This commit updates the custom crypto check ESLint rule to check for both process.binding() and internalBinding(). Refs: nodejs#24952 PR-URL: nodejs#25395 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
|
Hello, reviewer(s), Trying to follow up with this pending PR by rebasing & passing the CI by the commit to bring the PR up-to-date. Please review at convenience, or let me that if this PR is not needed. I'll be happy to close it as well. |
Sorry, something went wrong.
Per @BridgeAR’s comment ☝️, removed the unused flag. Thanks. |
Sorry, something went wrong.
Sorry, something went wrong.
|
Looks like there is one failing test now when compiling with ./configure --without-intl? |
Sorry, something went wrong.
|
The fixup is pretty simple, doing the same we already do for internalBinding('crypto'). |
Sorry, something went wrong.
Sorry, something went wrong.
|
tls_wrap also needs a common.hasCrypto check for the without ssl builds: internal/bootstrap/loaders.js:131
mod = bindingObj[module] = getInternalBinding(module);
^
Error: No such module: tls_wrap
at internalBinding (internal/bootstrap/loaders.js:131:34)
at process.binding (internal/bootstrap/loaders.js:109:14)
at Object.<anonymous> (/home/iojs/build/workspace/node-test-commit-linux-containered/test/parallel/test-process-binding-internalbinding-whitelist.js:32:16)
at Module._compile (internal/modules/cjs/loader.js:807:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:818:10)
at Module.load (internal/modules/cjs/loader.js:674:32)
at tryModuleLoad (internal/modules/cjs/loader.js:606:12)
at Function.Module._load (internal/modules/cjs/loader.js:598:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:870:12)
at internal/main/run_main_module.js:21:11
(The without ssl variant build (nodejs/build#1574) was only enabled in the last few days which is why it didn't show up in previous CI runs. This is exactly the kind of thing it's designed to catch.) |
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
Migrate various modules from using process.binding to internalBinding. PR-URL: nodejs#24952 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anna Henningsen <anna@addaleax.net>
|
I updated the commit message while landing. |
Sorry, something went wrong.
Migrate various modules from using process.binding to internalBinding. PR-URL: nodejs#24952 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anna Henningsen <anna@addaleax.net>
|
Hi, bit unrelated but does this mean there won't be a way anymore to access process.binding('buffer') entirely, or will there be other ways to access it? |
Sorry, something went wrong.
@davalapar Eventually, yes. There shouldn’t be anything on that object that isn’t available through public APIs, and there are no stability guarantess about the contents of process.binding('buffer') anyway. |
Sorry, something went wrong.
Use of process.binding() has largely been replaced by internalBinding(). This commit updates the custom crypto check ESLint rule to check for both process.binding() and internalBinding(). Refs: #24952 PR-URL: #25395 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Use of process.binding() has largely been replaced by internalBinding(). This commit updates the custom crypto check ESLint rule to check for both process.binding() and internalBinding(). Refs: #24952 PR-URL: #25395 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Use of process.binding() has largely been replaced by internalBinding(). This commit updates the custom crypto check ESLint rule to check for both process.binding() and internalBinding(). Refs: #24952 PR-URL: #25395 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
| Back | FazBrowse Home | New Git URL |
Refs #22160
For the migrated modules from the checklist of #22160, this PR identifies the places of source code & tests with "legacy" process.binding, and follows up to migrate to internalBinding.
Checklist