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

Bug 296934

Summary: [validation] No warning/error for prototype of unresolved field
Product: [WebTools] JSDT Reporter: Chris Jaun <cmjaun>
Component: GeneralAssignee: wst.javascript <wst.javascript-inbox>
Status: RESOLVED FIXED QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: cmjaun, jacek.pospychala
Version: 3.2   
Target Milestone: 3.2 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 296001    
Bug Blocks: 247201    

Description Chris Jaun CLA 2009-12-04 11:53:20 EST
+++ This bug was initially created as a clone of Bug #296001 +++



**Note the small update to the patch in the comments of the original bug**





This is part of bug 247201 - [validation] bugs in JavaScript objects
validation.
Opening separate bug to address only one of the issues originally listed.

Consider following:
function Car() {
    // there's no any color
}

var o; 
o = Car.prototype; // no problem, o is Object
o = Car.color.prototype; // problem is missing for unresolved "Car.color" part
<- This is this bug!
o = Car.color; // correct problem "color cannot be resolved or is not a field"
Comment 1 Chris Jaun CLA 2010-02-26 14:01:45 EST
Patch from original defect checked in.