[webkit-qt] Javascript string lastIndexOf method not working

Sriram Neelakandan sriram.neelakandan at gmail.com
Mon Apr 18 06:20:18 PDT 2011


which platform ? mips ?

On Sun, Apr 17, 2011 at 5:40 PM, Dwayne <sherrard at cableone.net> wrote:

> I am having trouble with the lastIndexOf string method not working in
> javascript.  The method always fails (-1 as returned index).
>
> For example:
>
>
>
>                 var mystring = new String(‘{string}’);
>
>                 mystring.length                                => 8
>
> mystring.indexOf(‘{‘)                     => 0
>
> mystring.lastIndexOf(‘}’)              => -1      ?!?!?!
>
>
>
> This seems like very basic behavior to be failing at this point.  Anyone
> else seeing this?  I am using Qt 4.7.2.  I didn’t see a bug filed
>
> On this on the trac page, so I’ll open a ticket if I’m not doing something
> stupid.
>
> Thanks!
>
>
>
> _______________________________________________
> webkit-qt mailing list
> webkit-qt at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt
>
>


-- 
Sriram Neelakandan
Author - Embedded Linux System Design And Development (
http://tinyurl.com/2doosu)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20110418/f2d32516/attachment.html>


More information about the webkit-qt mailing list