[Mono-bugs] [Bug 72697][Wis] New - mjs, can't handle properly the invocation of method before its definition has been reached.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 17 Feb 2005 15:20:24 -0500 (EST)


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=72697

--- shadow/72697	2005-02-17 15:20:24.000000000 -0500
+++ shadow/72697.tmp.1130	2005-02-17 15:20:24.000000000 -0500
@@ -0,0 +1,61 @@
+Bug#: 72697
+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, can't handle properly the invocation of method before its definition has been reached.
+
+Description of Problem:
+mjs, can't handle properly the invocation of method before its definition
+has been reached.
+
+It throws the following exception when performing  the Resolve process:
+
+ mjs use-func-before.js
+
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+in <0x00009> Microsoft.JScript.Function:get_NumOfArgs ()
+in <0x00183> Microsoft.JScript.Call:Resolve
+(Microsoft.JScript.IdentificationTable)
+in <0x000ad> Microsoft.JScript.Args:Resolve
+(Microsoft.JScript.IdentificationTable)
+in <0x002ed> Microsoft.JScript.Call:Resolve
+(Microsoft.JScript.IdentificationTable)
+in <0x00018> Microsoft.JScript.Call:Resolve
+(Microsoft.JScript.IdentificationTable,bool)
+in <0x00205> Microsoft.JScript.Expression:Resolve
+(Microsoft.JScript.IdentificationTable)
+in <0x00018> Microsoft.JScript.Expression:Resolve
+(Microsoft.JScript.IdentificationTable,bool)
+in <0x0021c> Microsoft.JScript.Block:Resolve
+(Microsoft.JScript.IdentificationTable)
+in <0x00011> Microsoft.JScript.ScriptBlock:Resolve
+(Microsoft.JScript.IdentificationTable)
+in <0x00051> Microsoft.JScript.SemanticAnalyser:Run
+(Microsoft.JScript.ScriptBlock)
+in <0x00205> Microsoft.Vsa.BaseVsaEngine:Compile ()
+in <0x00186> Driver:Main (string[])
+
+Steps to reproduce:
+Compile attached test case.
+
+Expected Results:
+28
+
+How often does this happen? 
+always.
+
+Additional Information:
+svn version: Thu Feb 17 13:32:22 CST 2005