[Mono-bugs] [Bug 76048][Wis] New - mjs allows undefined to be used with ++ operator.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Sep 9 20:29:12 EDT 2005


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 cnataren at novell.com.

http://bugzilla.ximian.com/show_bug.cgi?id=76048

--- shadow/76048	2005-09-09 20:29:12.000000000 -0400
+++ shadow/76048.tmp.15802	2005-09-09 20:29:12.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 76048
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: JScript
+AssignedTo: cesar at ciencias.unam.mx                            
+ReportedBy: cnataren at novell.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mjs allows undefined to be used with ++ operator.
+
+Description of Problem:
+If we use 'undefined' as the the variable to use with the ++ operator we
+allow that program as a valid one and we compile it. We generate invalid IL.
+
+Steps to reproduce the problem:
+
+Compile the following program:
+
+print (undefined++); 
+
+Actual Results:
+mjs allows the program to be compiled. And at runtime we get:
+
+** ERROR **: Invalid IL code at IL0013 in JScript 0:Global Code ():
+IL_0013: stloc.1
+
+
+Expected Results:
+
+test.js(1,8) : error JS5040: 'undefined' is read-only
+
+
+How often does this happen? 
+
+always.


More information about the mono-bugs mailing list