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.
Summary: | Used variable is marked as unused, if it's used as value of property in literal object | ||
---|---|---|---|
Product: | javascript | Reporter: | Petr Pisl <ppisl> |
Component: | Editor | Assignee: | Petr Pisl <ppisl> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | tboudreau, vriha |
Priority: | P3 | ||
Version: | 7.3 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Petr Pisl
2012-08-17 08:44:48 UTC
there are also some other cases when variables are marked as unused though they are used: var Core = Core || {}; Core.needModules(function () { "use strict"; var REGEXP = /^[+]?\d{1,20}$/; // REGEXP marked as unused Core.Test = { test: function (value) { var fieldType; // fieldType marked as unused alert(REGEXP.test(value)); switch (fieldType) { case "test": alert(REGEXP.test(value)); break; } } }; }); The first case fixed as duplicate of #218090. The Fordfrog's case needs to be still fixed. I will separate it in the new issue. *** This bug has been marked as a duplicate of bug 218090 *** |