From bd8c016bbadc93c2db8deb75d7056703ac3e3ff8 Mon Sep 17 00:00:00 2001 From: Simon Krajewski Date: Sat, 26 Mar 2016 11:39:26 +0100 Subject: [PATCH] avoid throw Void --- hscript/Parser.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) {