Browse Source

[java] Use only fast exceptions when not in debug mode

Cauê Waneck 11 years ago
parent
commit
4b1e765c4b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      std/java/internal/Exceptions.hx

+ 2 - 0
std/java/internal/Exceptions.hx

@@ -62,10 +62,12 @@ class Exceptions {
 		return obj;
 	}
 
+#if !debug
 	@:overload override public function fillInStackTrace():Throwable
 	{
 		return this;
 	}
+#end
 
 	@:overload override public function toString():String
 	{