We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 773d8ee + ed3377c commit 74c4087Copy full SHA for 74c4087
lib/Runtime/Library/ArrayBuffer.cpp
@@ -560,7 +560,7 @@ namespace Js
560
// start and end are clamped to valid indices, so the new length also cannot exceed MaxArrayBufferLength.
561
// Therefore, should be safe to cast down newLen to uint32.
562
// TODO: If we ever support allocating ArrayBuffer with byteLength > MaxArrayBufferLength we may need to review this math.
563
- Assert(newLen < MaxArrayBufferLength);
+ Assert(newLen <= MaxArrayBufferLength);
564
uint32 byteLength = static_cast<uint32>(newLen);
565
566
ArrayBuffer* newBuffer = nullptr;
0 commit comments