[DevTools] Roll inspector_protocol.
New Revision: 8ec18cf0885bef0b5c2a922c5dc3813cbf63e962 Change-Id: I65e271066599ed1aa1f9f8281be5b76e424d548d Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1618159 Reviewed-by: Alexei Filippov <alph@chromium.org> Commit-Queue: Johannes Henkel <johannes@chromium.org> Cr-Commit-Position: refs/heads/master@{#61627}
This commit is contained in:
parent
781fa664d7
commit
889b4ded6e
2
third_party/inspector_protocol/README.v8
vendored
2
third_party/inspector_protocol/README.v8
vendored
@ -2,7 +2,7 @@ Name: inspector protocol
|
||||
Short Name: inspector_protocol
|
||||
URL: https://chromium.googlesource.com/deps/inspector_protocol/
|
||||
Version: 0
|
||||
Revision: 0aafd2876f7485db7b07c513c0457b7cbbbe3304
|
||||
Revision: 8ec18cf0885bef0b5c2a922c5dc3813cbf63e962
|
||||
License: BSD
|
||||
License File: LICENSE
|
||||
Security Critical: no
|
||||
|
@ -178,7 +178,12 @@ std::unique_ptr<DictionaryValue> parseMap(
|
||||
key = StringUtil::fromUTF8(key_span.data(), key_span.size());
|
||||
tokenizer->Next();
|
||||
} else if (tokenizer->TokenTag() == cbor::CBORTokenTag::STRING16) {
|
||||
return nullptr; // STRING16 not supported yet.
|
||||
span<uint8_t> key_span = tokenizer->GetString16WireRep();
|
||||
if (key_span.size() & 1) return nullptr; // UTF16 is 2 byte multiple.
|
||||
key = StringUtil::fromUTF16(
|
||||
reinterpret_cast<const uint16_t*>(key_span.data()),
|
||||
key_span.size() / 2);
|
||||
tokenizer->Next();
|
||||
} else {
|
||||
// Error::CBOR_INVALID_MAP_KEY
|
||||
return nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user