Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311094 - [syntax] syntax error inside dojo constructure argument list is not caught
Summary: [syntax] syntax error inside dojo constructure argument list is not caught
Status: RESOLVED FIXED
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.2.4   Edit
Assignee: Project Inbox CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-29 15:01 EDT by Jim Zhang CLA
Modified: 2011-03-30 10:30 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.