gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/avm2 r9617: Use Type.getInstanceFields to


From: Tom Stellard
Subject: [Gnash-commit] /srv/bzr/gnash/avm2 r9617: Use Type.getInstanceFields to iterator over an object's properties.
Date: Mon, 13 Oct 2008 13:21:31 +0800
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9617
committer: Tom Stellard <address@hidden>
branch nick: gnash_dev
timestamp: Mon 2008-10-13 13:21:31 +0800
message:
  Use Type.getInstanceFields to iterator over an object's properties.
modified:
  testsuite/actionscript.all/haxe-swf9/as_to_hx.pl
=== modified file 'testsuite/actionscript.all/haxe-swf9/as_to_hx.pl'
--- a/testsuite/actionscript.all/haxe-swf9/as_to_hx.pl  2008-10-10 17:53:08 
+0000
+++ b/testsuite/actionscript.all/haxe-swf9/as_to_hx.pl  2008-10-13 05:21:31 
+0000
@@ -231,8 +231,9 @@
                skip_line();
                next;
        }
-       #Replace String in "for .. in" loops that iterator over String's 
properties with Reflect.fields(String).
-       $_ =~ 
s/(for\s*\(\s*\w+\s*in\s*)String\s*\)/$1Reflect\.fields\(String\)\)/g;
+       #Replace String in "for .. in" loops that iterator over String's 
properties with 
+       #Type.getInstanceFields(String).
+       $_ =~ 
s/(for\s*\(\s*\w+\s*in\s*)String\s*\)/$1Type\.getInstanceFields\(String\)\)/g;
 
        #Remove calls to String.gotcha.  I cannot find a Haxe equivilent for 
this.
        if($_ =~ /String.gotcha/){


reply via email to

[Prev in Thread] Current Thread [Next in Thread]