Subj : Rhino: Try/Catch problem To : netscape.public.mozilla.jseng From : ramirez Date : Fri May 14 2004 09:30 am I think that there is a bug in catching some errors in a try/catch block. Look at the code below: function crash(b) { var a, str, num; a = b['x']; // NOT caught //str = 'x'; a = b[str]; // NOT caught //a = b[1]; // caught, ok //num = 1; a = b[num]; // caught, ok //a = b.x; // caught, ok } function testcatch() { try { crash(null); writeln('no error'); } catch (e) { writeln('error: '+e); } } testcatch() .