[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/avm2 r9648: Skip attempts to set a String'
From: |
Tom Stellard |
Subject: |
[Gnash-commit] /srv/bzr/gnash/avm2 r9648: Skip attempts to set a String's length property. |
Date: |
Tue, 28 Oct 2008 15:02:59 +0800 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9648
committer: Tom Stellard <address@hidden>
branch nick: gnash_dev
timestamp: Tue 2008-10-28 15:02:59 +0800
message:
Skip attempts to set a String's length property.
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 14:57:41
+0000
+++ b/testsuite/actionscript.all/haxe-swf9/as_to_hx.pl 2008-10-28 07:02:59
+0000
@@ -256,6 +256,14 @@
}
}
+ #The way Haxe compiles string.length = 5 causes
+ #ReferenceError: Error #1074: Illegal write to read-only property
length on String.
+ #So we need to skip attempts to set a string's length property.
+ if($_ =~ /\.length\s*=/){
+ skip_line();
+ next;
+ }
+
#Print the converted line of code.
print $_;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/avm2 r9648: Skip attempts to set a String's length property.,
Tom Stellard <=