mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
src,lib: group properties used as constants from util
binding
Properties used as constants in `util` internal binding are scattered. This suggests using an object holding all of them for better maintenance. Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com> PR-URL: https://github.com/nodejs/node/pull/45539 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
This commit is contained in:
parent
3ebe7535b4
commit
be9cd3ecb0
7 changed files with 65 additions and 47 deletions
|
@ -67,11 +67,11 @@ const {
|
|||
kStringMaxLength
|
||||
} = internalBinding('buffer');
|
||||
const {
|
||||
getOwnNonIndexProperties,
|
||||
propertyFilter: {
|
||||
constants: {
|
||||
ALL_PROPERTIES,
|
||||
ONLY_ENUMERABLE
|
||||
ONLY_ENUMERABLE,
|
||||
},
|
||||
getOwnNonIndexProperties,
|
||||
} = internalBinding('util');
|
||||
const {
|
||||
customInspectSymbol,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue