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 197125 - JavaScript Navigation breaks on function call with new Keyword
Summary: JavaScript Navigation breaks on function call with new Keyword
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.0
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-27 09:30 UTC by bht
Modified: 2012-09-14 14:09 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 bht 2011-03-27 09:30:59 UTC
If a "new" keyword is involved in a function call, then it is not possible to navigate from the calling function to the function declaration.

Example:

function test(){
    
    function MyConstructor(){}
    MyConstructor();// navigation to MyConstructor() works
    var result = new MyConstructor();// navigation to MyConstructor() breaks
    
}
Comment 1 Martin Fousek 2012-09-14 14:09:45 UTC
Both of these navigation cases work in the new javascript editor, feel free to check that in the latest development builds:
http://bits.netbeans.org/download/trunk/nightly/latest/

Marking as fixed for NB7.3.