| Index: Source/wtf/ArrayBufferContents.cpp
|
| diff --git a/Source/wtf/ArrayBufferContents.cpp b/Source/wtf/ArrayBufferContents.cpp
|
| index 2e08a1afa2c2f6e337b176ed37afed8f71f4bfa7..1ac56fe8dedd38a4faaff4b28ff6ae301a2f54dc 100644
|
| --- a/Source/wtf/ArrayBufferContents.cpp
|
| +++ b/Source/wtf/ArrayBufferContents.cpp
|
| @@ -134,7 +134,7 @@ void ArrayBufferContents::DataHolder::allocateNew(unsigned sizeInBytes, SharingT
|
| void* data = nullptr;
|
| allocateMemory(sizeInBytes, policy, data);
|
| m_data = data;
|
| - m_sizeInBytes = sizeInBytes;
|
| + m_sizeInBytes = data ? sizeInBytes : 0;
|
| m_isShared = isShared;
|
| }
|
|
|
|
|