Skip to content

Commit a9b8b27

Browse files
Fix logic error
1 parent 7bcdec7 commit a9b8b27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Runtime/Library/JavascriptArray.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9486,7 +9486,7 @@ using namespace Js;
94869486
{
94879487
Assert(fromVal < MaxArrayLength);
94889488
Assert(toVal < MaxArrayLength);
9489-
Assert(direction == -1 || (fromVal + count < MaxArrayLength && toVal + count < MaxArrayLength));
9489+
Assert(direction != -1 && (fromVal + count <= MaxArrayLength && toVal + count <= MaxArrayLength));
94909490

94919491
uint32 fromIndex = static_cast<uint32>(fromVal);
94929492
uint32 toIndex = static_cast<uint32>(toVal);

0 commit comments

Comments
 (0)