[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/avm2 r9646: Skip calls to String.lastIndex
From: |
Tom Stellard |
Subject: |
[Gnash-commit] /srv/bzr/gnash/avm2 r9646: Skip calls to String.lastIndexOf that have a more than two arguments, or have a string as the second argument. |
Date: |
Mon, 27 Oct 2008 22:17:48 +0800 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9646
committer: Tom Stellard <address@hidden>
branch nick: gnash_dev
timestamp: Mon 2008-10-27 22:17:48 +0800
message:
Skip calls to String.lastIndexOf that have a more than two arguments, or have
a string as the second argument.
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-27 06:41:06
+0000
+++ b/testsuite/actionscript.all/haxe-swf9/as_to_hx.pl 2008-10-27 14:17:48
+0000
@@ -240,6 +240,16 @@
#Subtract the number of skipped tests from the total passed to
Dejagnu.totals().
$_ =~
s/Dejagnu.totals\(\s*(\w+)\s*,(.+)/Dejagnu.totals($1-$skipped_tests,$2/g;
+ #Skip calls to String.lastIndexOf that have a more than two arguments,
or have a string as
+ #the second argument.
+ if($_ =~ /lastIndexOf\((.+?)\)/){
+ print "//$1\n";
+ if ($1 =~ /.+?,\s*"/ || ($1 =~ tr/,//) >= 2){
+ skip_line();
+ next;
+ }
+ }
+
#Print the converted line of code.
print $_;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/avm2 r9646: Skip calls to String.lastIndexOf that have a more than two arguments, or have a string as the second argument.,
Tom Stellard <=