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 226986 - Inconsistent visibility of variable in Navigator when declared in anonymous function passed as function parameter
Summary: Inconsistent visibility of variable in Navigator when declared in anonymous f...
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-04 15:31 UTC by Vladimir Riha
Modified: 2015-08-04 14:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-03-04 15:31:50 UTC
Please try following in JS file:

(function() {
    QUnit.test('mw.Map', 17, function(assert) {
        var arry, conf, funky, globalConf, nummy, someValues;
        someValues = {
        };
        arry = new Date();
    });
}());

Navigator in this case shows only "someValues". I think it should either show the rest of declared variables or none



Product Version: NetBeans IDE Dev (Build web-main-10012-on-20130304)
Java: 1.7.0_15; Java HotSpot(TM) Client VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_15-b03
System: Linux version 3.2.0-38-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Petr Pisl 2013-03-20 10:38:46 UTC
In the current build there are displayed in the navigator all variables, but the question is whether this is correct. In the bigger file it can be big mess.
Comment 2 Petr Pisl 2015-08-04 14:42:07 UTC
In NB 8.1 shows none.