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 149408 - [65cat] Navigator does not nested JavaScript functions
Summary: [65cat] Navigator does not nested JavaScript functions
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-07 20:11 UTC by dynamite
Modified: 2012-09-22 02:16 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 dynamite 2008-10-07 20:11:04 UTC
[ JDK VERSION : 1.6.0_07 ]

In the example below the navigator shouldn't the show inner() to be
nested under outer().  After all, inner() can only be called in
relation to outer() and there can be more than one unique function
called inner(), just so long as they are nested differently.

function outer() {
    function inner() {
        
    }
}
Comment 1 Peter Pis 2008-10-08 08:29:44 UTC
Reassigning to javascript.
Comment 2 Marek Fukala 2009-04-24 16:33:23 UTC
reproducible
Comment 3 Petr Pisl 2009-10-08 10:11:05 UTC
Now the inner function is not nested in the outer, but is a sibling, which is also wrong. Probably it shouldn't be
displayed at all. 
Comment 4 Petr Pisl 2011-10-17 14:20:38 UTC
Still there.
Comment 5 Petr Pisl 2012-09-21 09:46:45 UTC
Working in the new js editor. Adding test for this issue. 
http://hg.netbeans.org/web-main/rev/df047c91559e
Comment 6 Quality Engineering 2012-09-22 02:16:25 UTC
Integrated into 'main-golden', will be available in build *201209220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/df047c91559e
User: Petr Pisl <ppisl@netbeans.org>
Log: #149408 - [65cat] Navigator does not nested JavaScript functions
Adding test