gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/avm2 r9647: Skip refrences to __proto__ pr


From: Tom Stellard
Subject: [Gnash-commit] /srv/bzr/gnash/avm2 r9647: Skip refrences to __proto__ property.
Date: Mon, 27 Oct 2008 22:57:41 +0800
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9647
committer: Tom Stellard <address@hidden>
branch nick: gnash_dev
timestamp: Mon 2008-10-27 22:57:41 +0800
message:
  Skip refrences to __proto__ 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:17:48 
+0000
+++ b/testsuite/actionscript.all/haxe-swf9/as_to_hx.pl  2008-10-27 14:57:41 
+0000
@@ -151,8 +151,14 @@
        #Replace String() with new String("")
        $_ =~ s/(\W)String\(\)/$1new String("")/g;
        
+       #Skip references to __proto__ Haxe does not handle __proto__ very well.
+       if($_ =~ /__proto__/ ){
+               skip_line();
+               next;
+       }
+       
        #Replace Class.prototype with Reflect.field(Class,'prototype')
-       $_ =~ s/(\w+)\.(prototype|__proto__)/Reflect.field($1,'$2')/g;
+       $_ =~ s/(\w+)\.(prototype)/Reflect.field($1,'$2')/g;
 
        #There is no Function class in haxe, so we need someway of converting 
this to haxe:
        #Function.prototype


reply via email to

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