Subj : Re: JS Shell: throw {} To : netscape.public.mozilla.jseng From : Jens Thiele Date : Sun Dec 26 2004 06:08 pm Christian Biesinger schrieb: > Hi, > I was playing around a bit with js shell... I noticed this: > js> throw {} > can't convert undefined to an integer > > Is this the expected result? I was expecting something along the lines > of "uncaught exception: object", maybe even "uncaught exception: {}" > > > A second issue: > js> throw { toString: function() { return "foo" } } > can't convert undefined to an integer both work as expected with (debian package of) 1.5rc6a js> throw {} uncaught exception: [object Object] js> throw { toString: function() { return "foo" } } uncaught exception: foo js> Jens .