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/Nodes JExpr.tc,1.2,1.3


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/JScript/Nodes JExpr.tc,1.2,1.3
Date: Tue, 14 Jan 2003 07:37:38 -0500

Update of /cvsroot/dotgnu-pnet/pnetlib/JScript/Nodes
In directory subversions:/tmp/cvs-serv17079/JScript/Nodes

Modified Files:
        JExpr.tc 
Log Message:


Make the "print" function work in jsrun.


Index: JExpr.tc
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/JScript/Nodes/JExpr.tc,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** JExpr.tc    14 Jan 2003 10:35:51 -0000      1.2
--- JExpr.tc    14 Jan 2003 12:37:36 -0000      1.3
***************
*** 448,462 ****
  Eval(JPrint)
  {
!       Object value = expr.Eval(engine);
!       String pvalue;
!       if(value is ArrayObject)
!       {
!               pvalue = ArrayPrototype.join(value, String.Empty);
!       }
!       else
!       {
!               pvalue = Convert.ToString(value);
!       }
!       Console.WriteLine(pvalue);
        return Empty.Value;
  }
--- 448,453 ----
  Eval(JPrint)
  {
!       Support.Print(engine, expr);
!       Console.WriteLine();
        return Empty.Value;
  }





reply via email to

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