Reviewers: arv,

Description:
Implement %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).

[email protected]
BUG=v8:3578
LOG=Y

Please review this at https://codereview.chromium.org/1148513002/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+106, -5 lines):
  M src/array.js
  M src/harmony-typedarray.js
  A test/mjsunit/harmony/typedarray-sort.js


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to