avoid throw Void

This commit is contained in:
Simon Krajewski
2016-03-26 11:39:26 +01:00
parent a8161f4160
commit bd8c016bba
+2 -2
View File
@@ -858,7 +858,7 @@ class Parser {
case "'".code, '"'.code, '\\'.code: b.writeByte(c);
case '/'.code: if( allowJSON ) b.writeByte(c) else invalidChar(c);
case "u".code:
if( !allowJSON ) throw invalidChar(c);
if( !allowJSON ) invalidChar(c);
var code = null;
try {
incPos();
@@ -1091,7 +1091,7 @@ class Parser {
}
char = readChar();
}
return null;
return null;
}
function tokenComment( op : String, char : Int ) {