зеркало из https://github.com/mozilla/gecko-dev.git
50d9348a9e
Replace the existing callers of `JS::NewArrayBufferWithContents` with the new `UniquePtr` alternative. Three callers to the old `JS::NewArrayBufferWithContents` function were left unchanged: - `mozilla::dom::FileReader::OnLoadEndArrayBuffer()` and `mozilla::dom::ArrayBufferBuilder::TakeArrayBuffer()` both store the data buffer as members and therefore have a more complicated lifetime. - `JSStructuredCloneReader::readTransferMap()` because it's not clear if the data can be free'ed when `ArrayBuffectObject` allocation fails. Differential Revision: https://phabricator.services.mozilla.com/D182588 |
||
---|---|---|
.. | ||
TestIDBResult.cpp | ||
TestKey.cpp | ||
TestSafeRefPtr.cpp | ||
TestSimpleFileInfo.cpp | ||
moz.build |