[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/avm2 r9627: Don't skip calls to hasOwnProp
From: |
Tom Stellard |
Subject: |
[Gnash-commit] /srv/bzr/gnash/avm2 r9627: Don't skip calls to hasOwnProperty() . |
Date: |
Sun, 19 Oct 2008 13:56:07 +0800 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9627
committer: Tom Stellard <address@hidden>
branch nick: gnash_dev
timestamp: Sun 2008-10-19 13:56:07 +0800
message:
Don't skip calls to hasOwnProperty() .
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 05:29:26
+0000
+++ b/testsuite/actionscript.all/haxe-swf9/as_to_hx.pl 2008-10-19 05:56:07
+0000
@@ -126,6 +126,10 @@
next;
}
+ #Replace Class.hasOwnProperty(prop) with Reflect.hasField(Class,prop)
+ #TODO: Make this work for other classes, if necessary
+ $_ =~
s/String.hasOwnProperty\(\s*[\'\"](\w+)[\'\"]\s*\)/Reflect.hasField(String,'$1')/g;
+
#Replace things like String.charCodeAt with
Reflect.field(String,'charCodeAt').
$_ =~ s/([a-zA-Z]+)\.([a-zA-Z]+)\s*([\.\)])/Reflect.field($1,'$2')$3/g;
@@ -195,12 +199,6 @@
next;
}
- #Remove calls to hasOwnProperty. I can't find a Haxe equivilent for
this.
- if($_=~ /hasOwnProperty/){
- skip_line();
- next;
- }
-
#Replace undefined with null.
$_ =~ s/undefined/null/g;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/avm2 r9627: Don't skip calls to hasOwnProperty() .,
Tom Stellard <=