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 7af65e2 commit 2e63773Copy full SHA for 2e63773
lib/Runtime/Library/JavascriptArray.cpp
@@ -9484,9 +9484,8 @@ using namespace Js;
9484
}
9485
else
9486
{
9487
- Assert(fromVal < MaxArrayLength);
9488
- Assert(toVal < MaxArrayLength);
9489
- Assert(direction != -1 && (fromVal + count <= MaxArrayLength && toVal + count <= MaxArrayLength));
+ Assert(direction != -1 || (fromVal < MaxArrayLength && toVal < MaxArrayLength));
+ Assert(fromVal + count <= MaxArrayLength && toVal + count <= MaxArrayLength);
9490
9491
uint32 fromIndex = static_cast<uint32>(fromVal);
9492
uint32 toIndex = static_cast<uint32>(toVal);
0 commit comments