[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/avm2 r9633: Don't skip calls to Class.__pr
From: |
Tom Stellard |
Subject: |
[Gnash-commit] /srv/bzr/gnash/avm2 r9633: Don't skip calls to Class.__proto__ . |
Date: |
Sun, 19 Oct 2008 19:16:07 +0800 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9633
committer: Tom Stellard <address@hidden>
branch nick: gnash_dev
timestamp: Sun 2008-10-19 19:16:07 +0800
message:
Don't skip calls to Class.__proto__ .
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-19 06:09:19
+0000
+++ b/testsuite/actionscript.all/haxe-swf9/as_to_hx.pl 2008-10-19 11:16:07
+0000
@@ -155,17 +155,14 @@
# next;
}
}
-
- if(index($_,"__proto__") != $[-1){
- skip_line();
- next;
- }
- if(index($_,"prototype") != $[-1){
- $_ =~ s/(\w+)\.(prototype)/Reflect.field($1,\'$2\')/g;
-# skip_line();
-# next
- }
+ #Replace Class.prototype with Reflect.field(Class,'prototype')
+ $_ =~ s/(\w+)\.(prototype|__proto__)/Reflect.field($1,'$2')/g;
+
+ #There is no Function class in haxe, so we if we are trying access a
property of Function
+ #Like this: Function.prototype we need to replace Function with
Type.getClass(function(){})
+ $_ =~ s/Function/Type.getClass(function(){})/g;
+
#Replace isNan(number) with Math.isNan(number)
$_ =~ s/isNaN/Math.isNaN/g;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/avm2 r9633: Don't skip calls to Class.__proto__ .,
Tom Stellard <=