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.
1 parent 9240377 commit ed3377cCopy full SHA for ed3377c
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