瀏覽代碼

async is not defined in haxe.Http on nodejs (#5683)

Kevin Leung 9 年之前
父節點
當前提交
8132228526
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/haxe/remoting/HttpConnection.hx

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

@@ -45,7 +45,7 @@ class HttpConnection implements Connection implements Dynamic<Connection> {
 	public function call( params : Array<Dynamic> ) : Dynamic {
 	public function call( params : Array<Dynamic> ) : Dynamic {
 		var data = null;
 		var data = null;
 		var h = new haxe.Http(__url);
 		var h = new haxe.Http(__url);
-		#if js
+		#if (js && !nodejs)
 			h.async = false;
 			h.async = false;
 		#end
 		#end
 		#if (neko && no_remoting_shutdown)
 		#if (neko && no_remoting_shutdown)