[Mono-bugs] [Bug 74654][Blo] Changed - mjs can't handle properly code flow where there're two paths an only one returns.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jun 26 18:45:15 EDT 2007

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by abram at atypedigital.com.


--- shadow/74654	2005-08-02 15:48:40.000000000 -0400
+++ shadow/74654.tmp.5725	2007-06-26 18:45:15.000000000 -0400
@@ -3,13 +3,13 @@
 Version: unspecified
 OS: unknown
 OS Details: 
 Status: NEW   
 Severity: Unknown
-Priority: Normal
+Priority: Blocker
 Component: JScript
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: cesar at ciencias.unam.mx               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -74,6 +74,23 @@
 Test ();
 If the exception is thrown the IL is wrong.
+------- Additional Comments From abram at atypedigital.com  2007-06-26 18:45 -------
+The problem is worse than failing when one path returns and another
+does not. It appears that it's not even possible to have multiple
+return paths, at least not in this case:
+function foo(bar) {
+    if(bar == 0) return "zero";
+    else if(bar == 1) return "one";
+    return "neither";
+Compile and run:
+Unhandled Exception: System.InvalidProgramException: Invalid IL code
+in JScript 0:foo...

More information about the mono-bugs mailing list