Status: New
Owner: ----

New issue 2210 by [email protected]: Syntax Checking could report a corrupt switch statment (example provided)
http://code.google.com/p/v8/issues/detail?id=2210

A misplaced statment in a switch produced a lot of hassle. There was no error on parsing - except that the function gameMove () could not be found..
(otherwise great work, guys! 8)


                                function gameMove (moveID) {
                                        switch (moveID) {
-------------->                      console.log (switchSeq);
                                                case 1: // "ABc"
                                                        
moveSemiCircle(seqBoxes[0],true,false,smallCircle);
                                                        
moveSemiCircle(seqBoxes[1],false,true,smallCircle);
                                                        switchSeq (0,1);
                                                break;
                                                case 2: // "AbC"
                                                        
moveSemiCircle(seqBoxes[0],true,false,bigCircle);
                                                        
moveSemiCircle(seqBoxes[2],false,true,bigCircle);
                                                        switchSeq (0,2);
                                                break;
                                                case 3: // "aBC"
                                                        
moveSemiCircle(seqBoxes[1],true,false,smallCircle);
                                                        
moveSemiCircle(seqBoxes[2],false,true,smallCircle);
                                                        switchSeq (1,2);
                                                break;
                                        }
                                }
Detailed description of the issue.


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to