Skip to content

Commit 295a5a4

Browse files
islandryuaddaleax
andauthored
Update src/inspector/dom_storage_agent.cc
Co-authored-by: Anna Henningsen <github@addaleax.net>
1 parent 5debe1c commit 295a5a4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/inspector/dom_storage_agent.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,7 @@ void DOMStorageAgent::registerStorage(Local<Context> context,
253253
}
254254
node::TwoByteValue key_utf16(isolate, key_value);
255255
node::TwoByteValue value_utf16(isolate, value_value);
256-
storage_map[std::u16string(reinterpret_cast<const char16_t*>(*key_utf16),
257-
key_utf16.length())] =
258-
std::u16string(reinterpret_cast<const char16_t*>(*value_utf16),
259-
value_utf16.length());
256+
storage_map[key_utf16.ToU16String()] = value_utf16.ToU16String();
260257
}
261258
}
262259

0 commit comments

Comments
 (0)