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