Browse Source

Change char code (#328)

58 is not ; but :. The char code for ; is 59
Ronnie 9 years ago
parent
commit
7c4e2be886
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Jint/Parser/JavascriptParser.cs

+ 1 - 1
Jint/Parser/JavascriptParser.cs

@@ -1227,7 +1227,7 @@ namespace Jint.Parser
             char ch = _source.CharCodeAt(_index);
             char ch = _source.CharCodeAt(_index);
 
 
             // Very common: ( and ) and ;
             // Very common: ( and ) and ;
-            if (ch == 40 || ch == 41 || ch == 58)
+            if (ch == 40 || ch == 41 || ch == 59)
             {
             {
                 return ScanPunctuator();
                 return ScanPunctuator();
             }
             }