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

Summary: Navigator Ignores Object Literal Params
Product: javascript Reporter: natanv
Component: NavigationAssignee: Petr Pisl <ppisl>
Status: RESOLVED INCOMPLETE    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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.