I'm trying to compile an lzunit test for swf9 with debug=true. It
looks like the compiler is expanding the "...args" varargs
declaration as if it were swf8 or dhtml. It doesn't seem to do this
when debug=false, and obviously its not needed
in swf9 since the flex compiler does this automatically as part of the
language.  Anyone know where the code that does this
expansion is being invoked?



    <method name="dw" args="...args">
        <![CDATA[
        if (debugWrite) {
            var s = "";
            for (var i = 0; i < args.length; i++) {
                var e = args[i];
                if (typeof(e) == "string") {
                    s += e;
                }
                else {
                    s += Debug.__String(e);
                }
            }
            Debug.debug(s);
        }
        ]]>
    </method>





function dw (...args) {
try {
var $lzsc$d = Debug, $lzsc$s = $lzsc$d.backtraceStack;
if ($lzsc$s) {
var $lzsc$a = Array.prototype.slice.call(arguments, 0);
$lzsc$a.callee = arguments.callee;
$lzsc$a["this"] = this;
$lzsc$s.push($lzsc$a);
if ($lzsc$s.length > $lzsc$s.maxDepth) {
$lzsc$d.stackOverflow()
}};
try {
var $lzsc$d = Debug, $lzsc$s = $lzsc$d.backtraceStack;
if ($lzsc$s) {
var $lzsc$a = Array.prototype.slice.call(arguments, 0);
$lzsc$a.callee = arguments.callee;
$lzsc$a["this"] = this;
$lzsc$s.push($lzsc$a);
if ($lzsc$s.length > $lzsc$s.maxDepth) {
$lzsc$d.stackOverflow()
}};

-- 
Henry Minsky
Software Architect
[EMAIL PROTECTED]

Reply via email to