2004-09-22 Cesar Lopez Nataren <cesar@ciencias.unam.mx>
authorCésar Natarén <cesar@mono-cvs.ximian.com>
Wed, 22 Sep 2004 19:19:13 +0000 (19:19 -0000)
committerCésar Natarén <cesar@mono-cvs.ximian.com>
Wed, 22 Sep 2004 19:19:13 +0000 (19:19 -0000)
* Parser.cs: use ToJSToken to set the operator properly.

svn path=/trunk/mcs/; revision=34249

mcs/class/Microsoft.JScript/Microsoft.JScript/ChangeLog
mcs/class/Microsoft.JScript/Microsoft.JScript/Parser.cs

index 01de218e0e16f67a97ee4bee1b1cdf8c34a95212..39837417850e5e67b127387e29a4923fcf1ac290 100644 (file)
@@ -1,5 +1,6 @@
 2004-09-22  Cesar Lopez Nataren  <cesar@ciencias.unam.mx>
 
+       * Parser.cs: use ToJSToken to set the operator properly.
        * FunctionDeclaration.cs: delete spaces.
 
 2004-09-21  Cesar Lopez Nataren  <cesar@ciencias.unam.mx>
index c44ab660c846efdb07dbd5f72459a4626280541e..4587867096fa9a464c9f3efb5c74b9efdb7f6f27 100644 (file)
@@ -798,7 +798,7 @@ namespace Microsoft.JScript {
                                int tt = ts.PeekToken ();
                                if (tt == Token.ADD || tt == Token.SUB) {
                                        ts.GetToken ();
-                                       pn = new Binary (parent, pn, MulExpr (parent), JSToken.Plus);
+                                       pn = new Binary (parent, pn, MulExpr (parent), ToJSToken (tt));
                                        continue;
                                }
                                break;