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 - Add warning for usages of eval and with statements
Summary: Add warning for usages of eval and with statements
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Petr Pisl
Depends on:
Reported: 2012-12-14 00:13 UTC by c69
Modified: 2012-12-14 00:13 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
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.