don't use neko.Lib.rethrow when not in neko

This commit is contained in:
Simon Krajewski
2017-06-01 12:58:51 +02:00
parent 73e9da8435
commit c150b84f18
2 changed files with 67 additions and 67 deletions

View File

@@ -75,7 +75,7 @@ class ClassBuilder {
}
catch (e:Dynamic) {//fails for unknown reason
if (e == 'assert')
neko.Lib.rethrow(e);
#if neko neko.Lib.rethrow(e) #else throw e #end;
constructor = new Constructor(this, null);
}
break;

View File

@@ -21,7 +21,7 @@ class Types {
}
catch (e:Dynamic)
if (Std.string(e) == 'Type not found \'$typeName\'') None;
else neko.Lib.rethrow(e);
else #if neko neko.Lib.rethrow(e) #else throw e #end;
static var types = new Map<Int,Void->Type>();
static var idCounter = 0;