Nicolas Cannasse %!s(int64=19) %!d(string=hai) anos
pai
achega
7889f75b52
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      std/Reflect.hx

+ 2 - 1
std/Reflect.hx

@@ -271,7 +271,8 @@ class Reflect {
 			if( t != null ) o.__proto__ = null;
 			untyped __js__("
 				for(var i in o)
-					a.push(i);
+					if( i != \"__proto__\" )
+						a.push(i);
 			");
 			if( t != null ) o.__proto__ = t;
 			var i = 0;