diff --git a/hscript/Parser.hx b/hscript/Parser.hx index 3cb7297..3bc7831 100644 --- a/hscript/Parser.hx +++ b/hscript/Parser.hx @@ -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 ) {