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 226680 - Navigator Ignores Object Literal Params
Summary: Navigator Ignores Object Literal Params
Status: RESOLVED INCOMPLETE
Alias: None
Product: javascript
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-25 19:13 UTC by natanv
Modified: 2015-08-04 14:40 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 natanv 2013-02-25 19:13:55 UTC
The javascript navigator does not parse object literals that are passed as params to a method.  In the example below, the first test case will result in "Null - Navigator" while the second will display the contents of var test2.  I would appreciate it if you could add support for object literal param navigation and have the ability to somehow set the anonymous object's name.


// Test Case 1
SomeObject.method1({
			
	test1: {
		sub1: 1,
		sub2: 2
	}
});

// Test Case 2
SomeObject.method2(function(){
			
	var test2 = {
		sub3: 1,
		sub4: 2
	};
});
Comment 1 Petr Pisl 2013-03-20 10:33:35 UTC
This null issue is already fixed. 

The anonymous object literal (parameter in case 1) is parsed and is kept in the model, but is not displayed in the navigator. The question is how, it should be displayed. The first idea is to show such objects just in the global scope, but what should be the name of these objects.
Comment 2 Petr Pisl 2015-08-04 14:40:00 UTC
Marking as incomplete. Unless we will not find a way how to display such objects in navigator.