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 76d058f commit cd03239Copy full SHA for cd03239
lib/Runtime/Library/JavascriptArray.cpp
@@ -9402,9 +9402,8 @@ using namespace Js;
9402
}
9403
else
9404
{
9405
- Assert(fromVal < MaxArrayLength);
9406
- Assert(toVal < MaxArrayLength);
9407
- Assert(direction == -1 || (fromVal + count < MaxArrayLength && toVal + count < MaxArrayLength));
+ Assert(direction != -1 || (fromVal < MaxArrayLength && toVal < MaxArrayLength));
+ Assert(fromVal + count <= MaxArrayLength && toVal + count <= MaxArrayLength);
9408
9409
uint32 fromIndex = static_cast<uint32>(fromVal);
9410
uint32 toIndex = static_cast<uint32>(toVal);
0 commit comments