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.

Bug 223815

Summary: Add warning for usages of eval and with statements
Product: javascript Reporter: c69
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description c69 2012-12-14 00:13:08 UTC
There is no need to be strict-as-JSLint, but both eval and with are safe, and should me marked with warnings in Javascript code. 

With is not allowed in ES5 strict mode, and eval behaves differently in strict mode, so it also can produce unpredictable results.