dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/JScript/Execute ScriptFunction.cs,1.


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/JScript/Execute ScriptFunction.cs,1.3,1.4
Date: Thu, 06 Mar 2003 20:08:40 -0500

Update of /cvsroot/dotgnu-pnet/pnetlib/JScript/Execute
In directory subversions:/tmp/cvs-serv26973/JScript/Execute

Modified Files:
        ScriptFunction.cs 
Log Message:


Implement builtin function invocation support; make Call/Construct re-entrant.


Index: ScriptFunction.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/JScript/Execute/ScriptFunction.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** ScriptFunction.cs   17 Jan 2003 06:34:46 -0000      1.3
--- ScriptFunction.cs   7 Mar 2003 01:08:36 -0000       1.4
***************
*** 25,28 ****
--- 25,29 ----
  using System.Reflection;
  using System.Globalization;
+ using Microsoft.JScript.Vsa;
  
  public abstract class ScriptFunction : JSObject
***************
*** 76,80 ****
        public Object CreateInstance(params Object[] args)
                        {
!                               return Construct(args);
                        }
  
--- 77,81 ----
        public Object CreateInstance(params Object[] args)
                        {
!                               return Construct(engine, args);
                        }
  
***************
*** 90,94 ****
        public Object Invoke(Object thisob, params Object[] args)
                        {
!                               return Call(thisob, args);
                        }
  
--- 91,95 ----
        public Object Invoke(Object thisob, params Object[] args)
                        {
!                               return Call(engine, thisob, args);
                        }
  
***************
*** 145,155 ****
  
        // Perform a call on this object.
!       internal abstract Object Call(Object thisob, Object[] args);
  
        // Perform a constructor call on this object.
!       internal virtual Object Construct(Object[] args)
                        {
                                JSObject obj = new 
JSObject(GetPrototypeForConstructedObject());
!                               Object result = Call(obj, args);
                                if(result is ScriptObject)
                                {
--- 146,157 ----
  
        // Perform a call on this object.
!       internal abstract Object Call
!                               (VsaEngine engine, Object thisob, Object[] 
args);
  
        // Perform a constructor call on this object.
!       internal virtual Object Construct(VsaEngine engine, Object[] args)
                        {
                                JSObject obj = new 
JSObject(GetPrototypeForConstructedObject());
!                               Object result = Call(engine, obj, args);
                                if(result is ScriptObject)
                                {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]