Sfoglia il codice sorgente

added flash9 implementation.

Nicolas Cannasse 19 anni fa
parent
commit
d0158f1616
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      std/Reflect.hx

+ 1 - 1
std/Reflect.hx

@@ -52,7 +52,7 @@ class Reflect {
 	**/
 	public static function createInstance( cl : Dynamic, args : Array<Dynamic> ) : Dynamic {
 		#if flash9
-			throw "Not implemented";
+			return cl.__construct__.call(null,[args]);
 		#else flash
 			var o = { __constructor__ : cl, __proto__ : cl.prototype };
 			cl[untyped "apply"](o,args);