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.
Embedding the string "use strict"; in a javascript file is considered good practice (cf. Crockford 2008). While the string statement itself has no effect, browsers will use strict mode when they see it. Because of this, the "code has no side effects" warning should not be shown in this case.
If bugzilla lets me, I'm changing this from "enhancement" to "defect" since it's actually not true that 'use strict'; has no side effects -- it does have side effects. Also, this applies to all platforms, not just PC/Linux.
Are there any workarounds for this? I'm a bit new to netbeans.
The warning is not shown anymore.
(In reply to comment #3) > The warning is not shown anymore. On what version? I am still getting it on 7.2.1.
Ok, I see now. See 218191.