Issue 137: division-> switch problem (it works correctly in previous
chrome, in FF, Safari and IE)
http://code.google.com/p/v8/issues/detail?id=137
New issue report by simoes.tiago:
<html>
<body>
<script>
document.write("Should be AA and is " + IntToHex(170));
function IntToHex(strNum) {
base = strNum / 16;
rem = strNum % 16;
base = base - (rem / 16);
baseS = MakeHex(base);
remS = MakeHex(rem);
return baseS + '' + remS;
}
function MakeHex(x) {
if((x >= 0) && (x <= 9)) {
return x;
} else {
switch(x) {
case 10: return "A";
case 11: return "B";
case 12: return "C";
case 13: return "D";
case 14: return "E";
case 15: return "F";
};
return "F";
};
}
</script>
</body></html>
Issue attributes:
Status: New
Owner: ----
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---