Status: New
Owner: ----

New issue 1476 by [email protected]: Switch case incorrectly matches value
http://code.google.com/p/v8/issues/detail?id=1476

A switch block seems to be incorrectly matching its value.

I have attached an html file which reproduces the issue.

The problem also occurs in a variant of the code which was modified to use if / else to replace the switch block.

The problem is resolved completely when uncommenting line 16, or line 17 causing the variable being switched on to be read inside of the switch case. The commented code on line 18 only writes to that variable and does not cause the problem to be resolved.

I can reproduce the issue (sometimes intermittently) in the following versions of chrome:
12.0.742.100 on OSX
12.0.742.100 on Windows
12.0.742.91 on OpenSUSE 10.2

I have not been able to reproduce the issue in chrome versions 10.* or 11.*

The expected results: "no failures" printed to the console.
The actual results: A list of failures is printed to the console.

Attachments:
        v8-bug.html  1.8 KB

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

Reply via email to