[Webkit-unassigned] [Bug 14901] New: for in loop on an Array does not work

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 8 02:53:52 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=14901

           Summary: for in loop on an Array does not work
           Product: WebKit
           Version: 419.x
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: atrasatti at mtld.mobi


I created a test Array with 3 elements, tried to cycle with a for in loop.
Safari simply does not enter the loop.

This is a sample script I wrote:
var mycars=new Array();
mycars[0]='Saab';
mycars[1]='Volvo';
mycars[2]='BMW'; ".
for (i=0;i<mycars.length;i++) {
        alert('car maker id'+i+', name '+mycars[i]);
}


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list