Browse Source

fixed inversed arguments in __new__

Nicolas Cannasse 16 years ago
parent
commit
59d586cf45
2 changed files with 3 additions and 1 deletions
  1. 2 0
      doc/CHANGES.txt
  2. 1 1
      genswf8.ml

+ 2 - 0
doc/CHANGES.txt

@@ -38,6 +38,8 @@ TODO :
 	php : fixed round to be consistent with other platforms
 	php : fixed bug concatenating two dynamic variables
 	php : php.Lib.rethrow now works as expected
+	flash9 : fixed bug with SWC output and recursive types
+	flash8 : fixed inversed arguments in __new__
 
 2009-03-22: 2.03
 	optimized Type.enumEq : use index instead of tag comparison for neko/flash9/php

+ 1 - 1
genswf8.ml

@@ -890,7 +890,7 @@ and gen_call ctx e el =
 		write ctx (AGetURL2 (match post with [] -> 0 | [{ eexpr = TConst (TString "GET") }] -> 1 | _ -> 2))
 	| TLocal "__new__", e :: el ->
 		let nargs = List.length el in
-		List.iter (gen_expr ctx true) el;
+		List.iter (gen_expr ctx true) (List.rev el);
 		push ctx [VInt nargs];
 		let k = gen_access ctx true e in
 		new_call ctx k nargs