Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAn issue about the TypedArray.prototype.sort(). #6503
Comments
|
@chicoxyzzy, @zenparsing, how does this look from spec point of view? |
|
The |
|
Thank you @chicoxyzzy! @NWU-NISL thank you for the report. |
|
To re-iterate, the behavior should be to do nothing if the sort function is undefined. |
|
That's not quite correct. If compare function is If x and y are both NaN, return +0. |
|
Thanks @chicoxyzzy! |


A typeerror occurred in ChakraCore when I passed an undefined parameter in TypedArray.prototype.sort(), but other engines, such as V8 and quickjs, did not throw an error. Therefore, I think there may be a problem here.
version
1.11.19
command
testcase
output
expected behavior
Contributor : @Haobin-Lee