| Summary: | NPE during validation in EqualExpression | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] JSDT | Reporter: | Chris Jaun <cmjaun> | ||||||
| Component: | General | Assignee: | Chris Jaun <cmjaun> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Nitin Dahyabhai <thatnitind> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | andrey.melentyev | ||||||
| Version: | 3.2 | Keywords: | needinfo | ||||||
| Target Milestone: | 3.2.1 | Flags: | thatnitind:
review+
|
||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Chris Jaun
Created attachment 172768 [details]
patch
If the FieldReference is determined to be a type we should still set its constant field to NotAConstant.
Chris, I'd like to see either a unit test for this or at least an example that triggers it without the patch. Here is your reproduce code Nitin.
I will add as junit as well...
var obj = {};
obj.first = {};
obj.first.second = function() {};
obj.first.second.prototype = new Object();
if({} != obj.first.second) {
}
Created attachment 173103 [details]
patch with junit
Patch checked in. *** Bug 322139 has been marked as a duplicate of this bug. *** |