DescriptionFix: make string indexing work with Infinity.
NumberToUint32 that I was trying to use maps -0 to +0 (as desired) but
also maps +/-Infinity to +0, which made +/-Infinity a valid string
index. I fixed it by introducing a new runtime function with the right
semantics.
TEST=LayoutTests/fast/js/char-at.html,mjsunit/string-charat.js
Committed: http://code.google.com/p/v8/source/detail?r=4734
Patch Set 1 #
Messages
Total messages: 2 (0 generated)
|