DescriptionImplement %TypedArray%.prototype.sort
The sort method of TypedArrays sorts in numerical order by default.
This patch implements sorting based on Arrays and adds a test.
The length of %TypedArray%.prototype.sort, like Array.prototype.sort,
seems to be unspecified in ES6, so this patch lets it have the value
1, to match our interpretation for Array.prototype.sort (though 0
would also be a sensible length).
R=arv@chromium.org
BUG=v8:3578
LOG=Y
Committed: https://chromium.googlesource.com/v8/v8/+/540bb0c80beb66578c42e71378de81b40455a83a
Patch Set 1 #
Total comments: 12
Patch Set 2 : cleanups #Patch Set 3 : rebase #Patch Set 4 : rebase #
Messages
Total messages: 16 (5 generated)
|