Przeglądaj źródła

added __charCodeAt

Nicolas Cannasse 17 lat temu
rodzic
commit
3a79a0e775
2 zmienionych plików z 2 dodań i 0 usunięć
  1. 1 0
      doc/CHANGES.txt
  2. 1 0
      genswf9.ml

+ 1 - 0
doc/CHANGES.txt

@@ -11,6 +11,7 @@ TODO inlining : substitute class+function type parameters in order to have fully
 	fixed neko.net.ThreadRemotingServer.onXML
 	genswf9 : fixed verify error with Null<Class> (was using dynamic access)
 	small patch for jsfl support
+	added __charCodeAt for very fast string operations on Flash9
 
 2008-04-05: 1.19
 	fixed flash9 Array.toString

+ 1 - 0
genswf9.ml

@@ -261,6 +261,7 @@ let property p t =
 		(match p with
 		| "length" (* Int in AS3/haXe *) -> ident p, None, false
 		| "charCodeAt" (* use haXe version *) -> ident p, None, true
+		| "__charCodeAt" -> as3 "charCodeAt", Some KInt, false
 		| _ -> as3 p, None, false);
 	| TAnon a ->
 		(match !(a.a_status) with