kjs: about if(undefvar)...

Koos Vriezen koos.vriezen at xs4all.nl
Sat Jan 11 14:49:55 GMT 2003


Hi,

The outcome of this test case
  <html><head><script>
    try {
      eval("if (xxx) alert('defined'); else alert('undefined');");
    } catch(e) {
      alert("error\n" + e);
    }
  </script></head><body></body></html>

has changed. It now throws an exception (used to be 'false' iirc). Is that
correct behaviour?
(I need to change the js code in netscape.javascript.JSObject if so)

Koos





More information about the kfm-devel mailing list