gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/avm2 r9596: Ignore calls to String.slice()


From: Tom Stellard
Subject: [Gnash-commit] /srv/bzr/gnash/avm2 r9596: Ignore calls to String.slice()
Date: Thu, 09 Oct 2008 10:42:18 +0800
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9596
committer: Tom Stellard <address@hidden>
branch nick: gnash_dev
timestamp: Thu 2008-10-09 10:42:18 +0800
message:
  Ignore calls to String.slice()
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-08 17:12:11 
+0000
+++ b/testsuite/actionscript.all/haxe-swf9/as_to_hx.pl  2008-10-09 02:42:18 
+0000
@@ -55,8 +55,11 @@
        }
        
        #CHECK 4 - Must run before CHECK 5.3
-       #Replace calls to slice with substr.
-       $_ =~ s/(\.)slice(\(.+\))/$1substr$2/g;
+       #Skip calls to slice there isn't an exact Haxe equivalent to this.
+       if($_ =~ /\.slice\(.+\)/){
+               skip_line();
+               next;
+       }
 
        if(index($_,"new") != $[-1){
                #Replace things like: new String; with new String();


reply via email to

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