gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-dev] [object].to_primitive() threw an error during ActionNewA


From: strk
Subject: Re: [Gnash-dev] [object].to_primitive() threw an error during ActionNewAdd
Date: Tue, 15 Jan 2008 11:24:39 +0100

On Tue, Jan 15, 2008 at 11:07:25AM +0100, Udo Giacomozzi wrote:
> What does the above error mean?
> 
> This simple code:
> 
> 
> ------------------------------------------
>   function foo(obj) {
>           trace("obj="+obj);
>   }
> 
>   var bar = { };
> 
>   foo(bar);
> ------------------------------------------
> 
> Produces this output:
> 
>   574] 11:04:44: DEBUG: 
> [object(gnash::object_as_object):0x80e7fd8].to_primitive() threw an error 
> during ActionNewAdd
>   574] 11:04:44: TRACE: obj=[object Object]
> 
> 
> Should I be worried about this?

Nope, it's just a debugging thing.

Arguments of an ActionNewAdd are converted to primitive values.
Your 'obj' above doesn't convert.
If you add a custom valueOf returning a number or string
that'd make it convert (unverified).

Be worried if you get unexpected results :)

--strk;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]