[Webkit-unassigned] [Bug 23614] New: switch (5.3) { case 5: print("FAIL!"); default: }
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jan 29 00:08:00 PST 2009
https://bugs.webkit.org/show_bug.cgi?id=23614
Summary: switch (5.3) { case 5: print("FAIL!"); default: }
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: zherczeg at inf.u-szeged.hu
The quickfix of bug #23469 is introduced a new bug. AP said I should open a new
bug report for this.
This is a copy of my comment:
var a = 5.3
switch(val) {
case 1:
return 10
case 2:
return 11
case 3:
return 12
case 5:
return 14
case 6:
return 15
default:
return 100
}
The switch selects "case 5", because numberToInt32() converts 5.3 to 5, which
is wrong in this case!
--
Configure bugmail: https://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