[Laszlo-dev] Empty Debug.info() throws error in SWF10 runtime
P T Withington
ptw at pobox.com
Mon Sep 26 08:05:26 PDT 2011
I think the real bug is that the other platforms don't have any notion of required args.
On 2011-09-26, at 10:59, Raju Bitter wrote:
> I was just surprised to run into the exception, since I wanted to
> update a Debug.info() and forgot to add the new value I wanted to see.
> I simply had never seen that error message. Don't really expect any
> behavior for calling Debug.info().
> On Mon, Sep 26, 2011 at 1:33 PM, P T Withington <ptw at pobox.com> wrote:
>> 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.
More information about the Laszlo-dev