Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
src,lib: make process.binding('config') internal
PR-URL: #23400 Refs: #22160 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
- Loading branch information
Showing
with
24 additions
and 18 deletions.
- +2 −2 lib/buffer.js
- +1 −1 lib/crypto.js
- +1 −1 lib/internal/async_hooks.js
- +2 −1 lib/internal/bootstrap/loaders.js
- +2 −2 lib/internal/bootstrap/node.js
- +1 −1 lib/internal/encoding.js
- +1 −1 lib/internal/inspector_async_hook.js
- +1 −1 lib/internal/print_help.js
- +1 −1 lib/internal/process/warning.js
- +1 −1 lib/internal/readline.js
- +1 −1 lib/trace_events.js
- +1 −1 lib/url.js
- +1 −1 src/node_config.cc
- +3 −1 test/parallel/test-icu-data-dir.js
- +2 −1 test/parallel/test-internal-modules-expose.js
- +3 −1 test/parallel/test-readline-position.js
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -342,7 +342,7 @@ Object.defineProperties( | ||
| } }); | ||
|
|
||
| const TextDecoder = | ||
| internalBinding('config').hasIntl ? | ||
| makeTextDecoderICU() : | ||
| makeTextDecoderJS(); | ||
|
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -1,6 +1,6 @@ | ||
| 'use strict'; | ||
|
|
||
| const config = internalBinding('config'); | ||
| const prefix = `(${process.release.name}:${process.pid}) `; | ||
| const { ERR_INVALID_ARG_TYPE } = require('internal/errors').codes; | ||
|
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -1,6 +1,6 @@ | ||
| 'use strict'; | ||
|
|
||
| const { hasTracing } = internalBinding('config'); | ||
| const kHandle = Symbol('handle'); | ||
| const kEnabled = Symbol('enabled'); | ||
| const kCategories = Symbol('categories'); | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -21,7 +21,7 @@ | ||
|
|
||
| 'use strict'; | ||
|
|
||
| const { toASCII } = internalBinding('config').hasIntl ? | ||
| internalBinding('icu') : require('punycode'); | ||
|
|
||
| const { hexTable } = require('internal/querystring'); | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -112,4 +112,4 @@ static void Initialize(Local<Object> target, | ||
|
|
||
| } // namespace node | ||
|
|
||
| NODE_MODULE_CONTEXT_AWARE_INTERNAL(config, node::Initialize) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters