[Mono-bugs] [Bug 74681][Wis] New - mjs breaks when typechecking RegExp properties.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 20 Apr 2005 21:10:58 -0400 (EDT)


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 cesar@ciencias.unam.mx.

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

--- shadow/74681	2005-04-20 21:10:58.000000000 -0400
+++ shadow/74681.tmp.15627	2005-04-20 21:10:58.000000000 -0400
@@ -0,0 +1,74 @@
+Bug#: 74681
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: JScript
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: cesar@ciencias.unam.mx               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mjs breaks when typechecking RegExp properties. 
+
+Description of Problem:
+
+The pattern '$n' in regular expressions make mjs break.
+
+Steps to reproduce the problem:
+1.  Compile the attached test case.
+ 
+
+Actual Results:
+cesar@itaca:~/mono/mcs/jtests> mjs regexp-dollar.js
+                                                                          
+                                                    
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+in <0x0001d> Microsoft.JScript.SemanticAnalyser:contains (System.Type
+target_type, System.String name, BindingFlags flags)
+in <0x0000f> Microsoft.JScript.SemanticAnalyser:object_contains_method
+(System.Type type, System.String name)
+in <0x00042> Microsoft.JScript.Identifier:is_static_property (System.String
+obj_name, System.String prop_name)
+in <0x0007a> Microsoft.JScript.Identifier:ResolveFieldAccess
+(Microsoft.JScript.AST parent)
+in <0x00172> Microsoft.JScript.Binary:Resolve
+(Microsoft.JScript.IdentificationTable context)
+in <0x000ad> Microsoft.JScript.Args:Resolve
+(Microsoft.JScript.IdentificationTable context)
+in <0x00383> Microsoft.JScript.Call:Resolve
+(Microsoft.JScript.IdentificationTable context)
+in <0x00018> Microsoft.JScript.Call:Resolve
+(Microsoft.JScript.IdentificationTable context, Boolean no_effect)
+in <0x00205> Microsoft.JScript.Expression:Resolve
+(Microsoft.JScript.IdentificationTable context)
+in <0x00018> Microsoft.JScript.Expression:Resolve
+(Microsoft.JScript.IdentificationTable context, Boolean no_effect)
+in <0x00385> Microsoft.JScript.Block:Resolve
+(Microsoft.JScript.IdentificationTable context)
+in <0x00011> Microsoft.JScript.ScriptBlock:Resolve
+(Microsoft.JScript.IdentificationTable context)
+in <0x0004d> Microsoft.JScript.SemanticAnalyser:Run
+(Microsoft.JScript.ScriptBlock prog)
+in <0x001ff> Microsoft.Vsa.BaseVsaEngine:Compile ()
+in <0x00186> Driver:Main (System.String[] args)
+
+
+Expected Results:
+For /fast+: regexp-dollar.js(1,15) : error JS0438: Object doesn't support
+this property or method
+
+for /fast-: the program gets compiled properly, but code involves the use
+of the Lenient* objects.
+
+How often does this happen? 
+Always
+
+Additional Information:
+mjs from svn: Wed Apr 20 18:56:29 CDT 2005