Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324874

Summary: Function assigned to field of global object is not resolved
Product: [WebTools] JSDT Reporter: Chris Jaun <cmjaun>
Component: GeneralAssignee: Chris Jaun <cmjaun>
Status: RESOLVED FIXED QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: jzhang
Version: 3.2.1Flags: thatnitind: review+
Target Milestone: 3.2.3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch none

Description Chris Jaun CLA 2010-09-09 13:24:38 EDT
org = {};
org.eclipse = {};
org.eclipse.fun = function(){};

org.eclipse.fun();


eclipse and fun() are not found in content assist.

If validation is turned on the call to fun() is flagged as an error.

If I change "org = {};" to "var org = {};" then everything works.
Comment 1 Chris Jaun CLA 2010-09-10 15:14:56 EDT
Created attachment 178647 [details]
patch
Comment 2 Chris Jaun CLA 2010-09-10 15:15:06 EDT
Need to add some junits.
Comment 3 Chris Jaun CLA 2010-09-13 13:42:53 EDT
*** Bug 325112 has been marked as a duplicate of this bug. ***
Comment 4 Nitin Dahyabhai CLA 2010-09-13 15:51:08 EDT
InferEngine#getAssignemnt(IExpression) needs its spelling fixed.
Comment 5 Chris Jaun CLA 2010-11-23 13:45:46 EST
Checked into 3.2.3 and HEAD.