How do I stop this message?
Note that
https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Object/toString
claims:
"Every object has a toString method ..."
(No I do not know what this.obj is, that's the point printing the
properties).
jjb
Yes, but if that object's toString method throws, or returns a
non-primitive, then you get the above error.
> (No I do not know what this.obj is, that's the point printing the
> properties).
What does this.obj convert to string as? Can you get this.obj[p]'s
toString function and see what it decompiles as?
this.obj[p].__proto__ would be good to discover as well. (If it's
null, you won't have a toString to be found, f.e..)
Mike
But I would have hoped that in either case I would also get an exception
so that I can figure out what is wrong. Since the code does not enter my
catch block, I can't distinguish this case from the hundreds that work.
Any way, I remembered that I've been this way before and now use our
toString:
http://code.google.com/p/fbug/source/browse/branches/firebug1.5/content/firebug/lib.js#204
jjb
You mean that this case doesn't throw an exception, but rather just
aborts the script? In that case I would _very_ much like to find out
more about the object (see my previous questions), so that we can
isolate the case and fix the JS engine bug that is indicated.
Mike