Community
Participate
Working Groups
If indexOf doesn't find value, I expect to get 0 not -1. If the string is at the start of the string, I expect 1 not 0. lastIndexOf and charCodeAt need to change as well. Reference defect 354393 against Java Generation
Following Matt's lead with his fixes for 354393, I added/corrected JS RT implementations for indexOf, lastIndexOf, charCodeAt; I was unable to find existing FVT testcases that cover these, so I unit-tested with a few handcoded tests.
Verified with 201109120910
Closing this defect.