Nicolas Cannasse 19 年之前
父节点
当前提交
a381bae0d2
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      std/Hash.hx

+ 3 - 3
std/Hash.hx

@@ -32,9 +32,9 @@ class Hash<T> {
 		h = untyped __dollar__hnew(0);
 		h = untyped __dollar__hnew(0);
 		#else js
 		#else js
 		h = Reflect.empty();
 		h = Reflect.empty();
-		untyped {
-			if( h.__proto__ != null )
-				delete(h.__proto__);
+		untyped if( h.__proto__ != null ) {
+			h.__proto__ = null;
+			delete(h.__proto__);
 		}
 		}
 		#else error
 		#else error
 		#end
 		#end