Skip to content

src: fix reading empty string views in Blob[De]serializer

The string writing/reading was intended for debugging info in snapshot, which had a CHECK_GT(length, 0) check, it then got repurposed for SEA resource writing/reading and turned into a helper for string views, but was not updated to handle empty views, causing occasional crash in the CI when the read is protected. This patch fixes it.

Fixes: https://github.com/nodejs/node/issues/50740

Merge request reports

Loading