This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Here is a mini example of try-catch that fails in Netbeans: ``` function test() { try { throw "myException"; } catch (error) { console.warn('parse error; ', error.name, ': ', error.message); } } ``` Netbeans shows a warning for `error` variable assuming it is a global variable. It only happens when I use `error.name` and not `error` alone. It's weird because the same example in a function works fine: ``` function errorLog(error) { console.warn('parse error; ', error.name, ': ', error.message); } ```
Javascript rather than java :)
Yes, I forgot to mention that :-). Sorry.
Fixed for NB 8.1