DescriptionRemove unnecessary checks and runtime calls from ToLength
This should make it easier to move to using ToLength in more places to
meet ES2015 spec requirements without regressing performance. We might
also want to mark it as inlineable, but I've left that for another
patch.
Also pull 2^53 - 1 out into a macro constant instead of requiring a load
from Number.MAX_SAFE_INTEGER.
Patch Set 1 #
Total comments: 1
Patch Set 2 : Add NaN check #
Total comments: 1
Messages
Total messages: 5 (1 generated)
|