2
0
Nicolas Cannasse 18 жил өмнө
parent
commit
6917eb464a

+ 2 - 1
genswf9.ml

@@ -799,7 +799,8 @@ and gen_call ctx e el =
 	| TLocal "__delete__" , [o;f] ->
 		gen_expr ctx true o;
 		gen_expr ctx true f;
-		write ctx (A3DeleteProp (lookup (A3TArrayAccess ctx.gpublic) ctx.types))
+		write ctx (A3DeleteProp (lookup (A3TArrayAccess ctx.gpublic) ctx.types));
+		ctx.infos.istack <- ctx.infos.istack - 1
 	| TLocal "__unprotect__" , [e] ->
 		gen_expr ctx true e
 	| TLocal "__typeof__", [e] ->

+ 3 - 1
std/haxe/remoting/Connection.hx

@@ -58,8 +58,10 @@ class Connection implements Dynamic<Connection> {
 		var s = new haxe.Serializer();
 		s.serialize(params);
 		var params = escapeString(s.toString());
+		#if (flash8 || flash9)
 		var s = flash.external.ExternalInterface.call("haxe.remoting.Connection.doCall",path,f,params);
 		if( s == null )
+		#end
 			throw "Failed to call JS method "+__path.join(".");
 		return new haxe.Unserializer(s).unserialize();
 	#else js
@@ -136,7 +138,7 @@ class Connection implements Dynamic<Connection> {
 	#end
 		#if flash9
 		flash.external.ExternalInterface.addCallback("remotingCall",doCall);
-		#else true
+		#else flash8
 		flash.external.ExternalInterface.addCallback("remotingCall",null,doCall);
 		#end
 	}