浏览代码

[neko] fix sys.net.Socket (broken by 52aeb180fd233f400d997e1d57bfb13c6e878ada)

Dan Korostelev 9 年之前
父节点
当前提交
2e80842218
共有 2 个文件被更改,包括 2 次插入3 次删除
  1. 1 2
      src/macro/interp.ml
  2. 1 1
      std/neko/_std/sys/net/Socket.hx

+ 1 - 2
src/macro/interp.ml

@@ -993,8 +993,7 @@ let builtins =
 			Hashtbl.replace h k v;
 			Hashtbl.replace h k v;
 			VBool (not old);
 			VBool (not old);
 		);
 		);
-		"hadd", Fun4 (fun h k v cmp ->
-			if cmp <> VNull then assert false;
+		"hadd", Fun3 (fun h k v ->
 			let h = vhash h in
 			let h = vhash h in
 			let old = Hashtbl.mem h k in
 			let old = Hashtbl.mem h k in
 			Hashtbl.add h k v;
 			Hashtbl.add h k v;

+ 1 - 1
std/neko/_std/sys/net/Socket.hx

@@ -232,7 +232,7 @@ class Socket {
 				var i = 0;
 				var i = 0;
 				while( i < a.length ){
 				while( i < a.length ){
 					r[i] = a[i].__s;
 					r[i] = a[i].__s;
-					__dollar__hadd(c,a[i].__s,a[i],null);
+					__dollar__hadd(c,a[i].__s,a[i]);
 					i += 1;
 					i += 1;
 				}
 				}
 				return r;
 				return r;