Displaying 4 results from an estimated 4 matches for "trace_properties_recurse".
2007 Aug 15
3
2 commits - libswfdec/swfdec_as_object.c test/trace
libswfdec/swfdec_as_object.c | 62 +++++++++++++++-------
test/trace/Makefile.am | 9 +++
test/trace/addProperty-set-prototypes-5.swf |binary
test/trace/addProperty-set-prototypes-5.swf.trace | 4 +
test/trace/addProperty-set-prototypes-6.swf |binary
test/trace/addProperty-set-prototypes-6.swf.trace | 5 +
2007 Aug 22
0
3 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_function.c test/trace
...uot;names")
return true;
if (o == _global.Microphone && prop == "names")
return true;
+
+#if __SWF_VERSION__ < 6
+ if (prop == "__proto__" && o[prop] == undefined)
+ return true;
#endif
return false;
@@ -260,71 +332,63 @@ function trace_properties_recurse (o, pr
if (flags != "")
flags = " (" + flags + ")";
- var id_string = "";
- if (typeof (o[prop]) == "object" || typeof (o[prop]) == "function")
- id_string = "[" + o[prop]["mySecretId"] + "...
2007 Aug 21
0
2 commits - test/trace
...alSecretId")
return true;
+#if __SWF_VERSION__ >= 6
if (o == _global.Camera && prop == "names")
return true;
if (o == _global.Microphone && prop == "names")
return true;
+#endif
return false;
}
@@ -231,19 +260,21 @@ function trace_properties_recurse (o, le
flags = " (" + flags + ")";
// handle secretId that keeps track what things we have seen earlier
+ var id_string = "";
var seen = false;
- if (hasOwnProperty (o[prop], "mySecretId")) {
- seen = true;
- } else {
- o...
2007 Nov 27
0
12 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object.c libswfdec/swfdec_load_object.h
...operties.as
+++ b/test/trace/trace_properties.as
@@ -1,4 +1,4 @@
-#if __SWF_VERSION__ == 5
+#if __SWF_VERSION__ <= 5
// create a _global object, since it doesn't have one, these are ver 6 values
_global = new_empty_object ();
_global.ASSetNative = ASSetNative;
@@ -325,7 +325,7 @@ function trace_properties_recurse (o, prefix, identifier, level)
}
}
-function generate_names (o, prefix, identifier)
+function generate_names (o, prefix, identifier, output)
{
// mark the ones that are not hidden
var nothidden = new Array ();
@@ -368,6 +368,9 @@ function generate_names (o, prefix, identifier)
}...