Skip to content

Commit

Permalink
Revert "XS: fuzzilli 38"
Browse files Browse the repository at this point in the history
This reverts commit 2511eda.
  • Loading branch information
mhofman committed Jan 10, 2023
1 parent d4a2881 commit 3a2c047
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions xs/sources/xsArray.c
Original file line number Diff line number Diff line change
Expand Up @@ -2340,13 +2340,9 @@ void fx_Array_prototype_sort(txMachine* the)
mxTypeError("compare is no function");
}
}
if (function)
fxSortArrayItems(the, function, C_NULL, fxGetArrayLength(the, mxThis));
else {
if (array)
array = fxCheckArrayItems(the, array, 0, array->value.array.length);
fxSortArrayItems(the, function, array, fxGetArrayLength(the, mxThis));
}
if (array)
array = fxCheckArrayItems(the, array, 0, array->value.array.length);
fxSortArrayItems(the, function, array, fxGetArrayLength(the, mxThis));
mxResult->kind = mxThis->kind;
mxResult->value = mxThis->value;
}
Expand Down

0 comments on commit 3a2c047

Please sign in to comment.