test/trace/Makefile.am | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
diff-tree c7b0dabb45c6522f1cb4413a2f997dd2be63568f (from
223cc7d4adec6429f56efa8750e04345ccd85bfd)
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Sat Aug 18 00:51:22 2007 +0300
Forgot to add forin-delete test to Makefile.am (sigh)
diff --git a/test/trace/Makefile.am b/test/trace/Makefile.am
index 9f3becf..794e7f1 100644
--- a/test/trace/Makefile.am
+++ b/test/trace/Makefile.am
@@ -380,6 +380,13 @@ EXTRA_DIST = \
function-tostring-7.swf.trace \
function-undefined.swf \
function-undefined.swf.trace \
+ forin-delete.as \
+ forin-delete-5.swf \
+ forin-delete-5.swf.trace \
+ forin-delete-6.swf \
+ forin-delete-6.swf.trace \
+ forin-delete-7.swf \
+ forin-delete-7.swf.trace \
goto1.swf \
goto1.swf.trace \
goto2.swf \
test/trace/trace_properties.as | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
diff-tree 38189c49dbb766651e8e0af949cfab1865c83398 (from
97b081a94b818aedc4c7f9f9aea6d6326ca181d9)
Author: Benjamin Otte <otte at gnome.org>
Date: Wed Sep 5 14:09:03 2007 +0200
use hasOwnProperty instead of != undefined to figure out if the object has
the property
diff --git a/test/trace/trace_properties.as b/test/trace/trace_properties.as
index 9306a84..307c1b9 100644
--- a/test/trace/trace_properties.as
+++ b/test/trace/trace_properties.as
@@ -430,7 +430,7 @@ function trace_properties (o, prefix, id
if (typeof (o) == "object" || typeof (o) == "function")
{
- if (o["mySecretId"] == undefined) {
+ if (!o.hasOwnProperty ("mySecretId")) {
o["mySecretId"] = prefix + (prefix != "" ?
"." : "") + identifier;
generate_names (o, prefix, identifier);
}