Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326894 - allow "undefined" as function parameter
Summary: allow "undefined" as function parameter
Status: RESOLVED DUPLICATE of bug 324416
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.2.3   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-04 04:10 EDT by Jacek Pospychala CLA
Modified: 2010-10-04 04:13 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jacek Pospychala CLA 2010-10-04 04:10:47 EDT
"Undefined" should be allowed as a function parameter. e.g in following JS code:

function f(abc,undefined) { // syntax error on token "undefined", invalid FormalParameter
	
}

function f(undefined) { // syntax error on token "undefined", delete this token
	
}
Comment 1 Jacek Pospychala CLA 2010-10-04 04:13:22 EDT
ah ok... Nitin patch in bug 324416 fixes this problem. I thought it was already applied to CVS..

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