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

Bug 326894

Summary: allow "undefined" as function parameter
Product: [WebTools] JSDT Reporter: Jacek Pospychala <jacek.pospychala>
Component: GeneralAssignee: Project Inbox <jsdt.javascript-inbox>
Status: RESOLVED DUPLICATE QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3    
Version: 3.2.3   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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 ***