Pārlūkot izejas kodu

onError throw by default.

Nicolas Cannasse 19 gadi atpakaļ
vecāks
revīzija
108dec90ed
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      std/haxe/remoting/AsyncConnection.hx

+ 1 - 1
std/haxe/remoting/AsyncConnection.hx

@@ -34,7 +34,7 @@ class AsyncConnection implements Dynamic<AsyncConnection> {
 	function new( data : Dynamic, path ) {
 		__data = data;
 		__path = path;
-		__error = { ref : function(e) { } };
+		__error = { ref : function(e) { throw e; } };
 	}
 
 	function __resolve(field) {