mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
I mistakenly used ensure_capacity upon first implementing this, leading to a crash when the requested memory couldn't be allocated. Instead, we now pass the maxByteLength to create_shared_byte_data_block (which throws the RangeError for us) and shrink the data block back down to the proper size.
17 KiB
17 KiB