Skip to content

Commit 2e63773

Browse files
Fix
1 parent 7af65e2 commit 2e63773

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/Runtime/Library/JavascriptArray.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9484,9 +9484,8 @@ using namespace Js;
94849484
}
94859485
else
94869486
{
9487-
Assert(fromVal < MaxArrayLength);
9488-
Assert(toVal < MaxArrayLength);
9489-
Assert(direction != -1 && (fromVal + count <= MaxArrayLength && toVal + count <= MaxArrayLength));
9487+
Assert(direction != -1 || (fromVal < MaxArrayLength && toVal < MaxArrayLength));
9488+
Assert(fromVal + count <= MaxArrayLength && toVal + count <= MaxArrayLength);
94909489

94919490
uint32 fromIndex = static_cast<uint32>(fromVal);
94929491
uint32 toIndex = static_cast<uint32>(toVal);

0 commit comments

Comments
 (0)