I would say that it is an error, and it is unfortunate that the other platforms 
don't detect it.

What is your expectation for calling Debug.info with no arguments?  That it 
print nothing?

You will also find that warnInternal (or its implementation) already has a 
horribly complex heuristic for back-compatibility with Debug.write, which may 
be why there is not better error checking/reporting.

On 2011-09-26, at 05:48, Raju Bitter wrote:

> A call to Debug.info() with no arguments throws an error in the SWF10
> runtime only:
> ERROR @debugger/LzDebug.lzs≈577: ArgumentError: Error #1063: Argument
> count mismatch on LzDebugService/warnInternal(). Expected 2, got 1.
> 
> It's caused when the function is applied within LzDebug#warnInternal:
> 
>    return this.warnInternal.apply(this, [LzInfo].concat(args));
> 
> Might be better to show a warning instead.
> 


Reply via email to