When executing this test case, I mistakenly wrote a.value to a.avalue in line 3, which caused all the return values of parts.sort to become NaN. At this point, none of the other engines changed the ordering of the original array, but jerryscript reversed the array.
Version
Version: 3.0.0 (fea10bb7)
Test case
Execution steps
Output
Expected behavior
Description
When executing this test case, I mistakenly wrote
a.value
toa.avalue
in line 3, which caused all the return values ofparts.sort
to becomeNaN
. At this point, none of the other engines changed the ordering of the original array, butjerryscript
reversed the array.