mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
inspector: fix StringUtil::CharacterCount for unicodes
`StringUtil::CharacterCount` should return the length of underlying representation storage of a protocol string. `StringUtil::CharacterCount` is only used in DictionaryValue serialization. Only `Network.Headers` is an object type, represented with DictionaryValue. PR-URL: https://github.com/nodejs/node/pull/56788 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Daniel Lemire <daniel@lemire.me> Reviewed-By: Kohei Ueno <kohei.ueno119@gmail.com>
This commit is contained in:
parent
671d058689
commit
0edeafd73d
7 changed files with 122 additions and 6 deletions
9
node.gyp
9
node.gyp
|
@ -432,6 +432,7 @@
|
|||
'test/cctest/test_quic_tokens.cc',
|
||||
],
|
||||
'node_cctest_inspector_sources': [
|
||||
'test/cctest/inspector/test_node_protocol.cc',
|
||||
'test/cctest/test_inspector_socket.cc',
|
||||
'test/cctest/test_inspector_socket_server.cc',
|
||||
],
|
||||
|
@ -1210,6 +1211,14 @@
|
|||
'HAVE_INSPECTOR=1',
|
||||
],
|
||||
'sources': [ '<@(node_cctest_inspector_sources)' ],
|
||||
'include_dirs': [
|
||||
# TODO(legendecas): make node_inspector.gypi a dependable target.
|
||||
'<(SHARED_INTERMEDIATE_DIR)', # for inspector
|
||||
'<(SHARED_INTERMEDIATE_DIR)/src', # for inspector
|
||||
],
|
||||
'dependencies': [
|
||||
'deps/inspector_protocol/inspector_protocol.gyp:crdtp',
|
||||
],
|
||||
}, {
|
||||
'defines': [
|
||||
'HAVE_INSPECTOR=0',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue