Just use Error.rethrow

This commit is contained in:
Juraj Kirchheim
2017-06-01 13:14:39 +02:00
parent 49e48bc801
commit c7634e0a29
2 changed files with 2 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ class ClassBuilder {
}
catch (e:Dynamic) {//fails for unknown reason
if (e == 'assert')
#if neko neko.Lib.rethrow(e) #else throw e #end;
tink.core.Error.rethrow(e);
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 #if neko neko.Lib.rethrow(e) #else throw e #end;
else tink.core.Error.rethrow(e);
static var types = new Map<Int,Void->Type>();
static var idCounter = 0;