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

Bug 311094

Summary: [syntax] syntax error inside dojo constructure argument list is not caught
Product: [WebTools] JSDT Reporter: Jim Zhang <jzhang>
Component: GeneralAssignee: Project Inbox <jsdt.javascript-inbox>
Status: RESOLVED FIXED QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: cmjaun
Version: unspecified   
Target Milestone: 3.2.4   
Hardware: All   
OS: All   
Whiteboard:

Description Jim Zhang CLA 2010-04-29 15:01:50 EDT
Build Identifier: WTP 3.2 M6

I have the following code which has the syntax error 

this.store = new dojo.data.ItemFileReadStore(
	data: {identifier: "id", label: "id", items: items}
);

because the argument is meant to be an object literal but I missed the enclosing curly braces.  This should have been caught by the syntax validation.

Reproducible: Always
Comment 1 Chris Jaun CLA 2011-03-30 10:30:53 EDT
A syntax error is now reported on this statement:

Syntax error on token ":", invalid AssignmentOperator	script1.js	/JSProject	line 2	JavaScript Problem

Fixed in 3.2.4 by patch on BUG329716.