Dan Korostelev 9 年之前
父节点
当前提交
9c08e9457c
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      std/js/_std/haxe/ds/ObjectMap.hx

+ 1 - 2
std/js/_std/haxe/ds/ObjectMap.hx

@@ -38,8 +38,7 @@ class ObjectMap<K:{ }, V> implements haxe.Constraints.IMap<K,V> {
 	var h : { };
 
 	public function new() : Void {
-		h = { };
-		untyped h.__keys__ = { };
+		h = { __keys__: {} };
 	}
 
 	public function set(key:K, value:V):Void untyped {