Files
ladybird/Libraries/LibJS/Runtime/ArrayBuffer.cpp
CountBleck b42402514e LibJS: Don't crash on enormous maxByteLengths for SharedArrayBuffer
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.
2026-01-05 06:38:55 -05:00

17 KiB