Browse Source

remove __proto__ in JS.

Nicolas Cannasse 19 years ago
parent
commit
f33b4f02df
1 changed files with 4 additions and 0 deletions
  1. 4 0
      std/Hash.hx

+ 4 - 0
std/Hash.hx

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