On 2015/07/15 22:59:01, adamk wrote:
The broader question I have for rossberg is something like: why did TC39 make
ToLength have different behavior for negative values than ToUint32?

The wrap-around semantics of ToUint is completely crazy, and would be even
crazier when applied to random ranges like 0..2^53. Using -1 as a (non-)limit used to work more by accident than by design. But admittedly, the crop semantics of ToLength isn't great either. It would be best to throw, but that might have
broken too much code. Just guessing, I'm afraid I don't know the exact
motivation.

https://codereview.chromium.org/1226143009/

--
--
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