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;


_______________________________________________
Gnash-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-dev

Reply via email to