Browse Source

do not allow WeakMap being assigned to Map (fixed issue #1688)

Simon Krajewski 12 years ago
parent
commit
b3748ceaa5
1 changed files with 1 additions and 6 deletions
  1. 1 6
      std/Map.hx

+ 1 - 6
std/Map.hx

@@ -154,12 +154,7 @@ abstract Map< K, V > (IMap< K, V > ) {
 	
 	
 	@:from static inline function fromObjectMap < K: { }, V > (map:ObjectMap< K, V > ):Map< K, V > {
 	@:from static inline function fromObjectMap < K: { }, V > (map:ObjectMap< K, V > ):Map< K, V > {
 		return map;
 		return map;
-	}
-	
-	@:from static inline function fromWeakMap<K:{},V>(map:WeakMap<K,V>):Map<K,V> {
-		return map;
-	}
-	
+	}	
 }
 }
 
 
 interface IMap < K, V > {
 interface IMap < K, V > {