Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 289805 - [validation] [syntax] Validation failure with comma operator
Summary: [validation] [syntax] Validation failure with comma operator
Status: CLOSED DUPLICATE of bug 324416
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: 3.3   Edit
Assignee: wst.javascript CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-17 20:12 EDT by jdance CLA
Modified: 2010-10-29 15:18 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 jdance CLA 2009-09-17 20:12:36 EDT
Put the following into a JavaScript file.

The line with the comma operator will produce an error:
Syntax error on token ",", ; expected

var 
	// Will speed up references to window, and allows munging its name.
	window = this, // error here
	// Will speed up references to undefined, and allows munging its name.
	undefined;

(The above is a simplified version of the jquery-1.3.2 initialization.)
Comment 1 Chris Jaun CLA 2010-10-29 15:18:28 EDT

*** This bug has been marked as a duplicate of bug 324416 ***