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

Bug 447413

Summary: [Occurrences] Named function expression identifiers belong only to that function's scope
Product: [ECD] Orion Reporter: Curtis Windatt <curtis.windatt.public>
Component: JS ToolsAssignee: Curtis Windatt <curtis.windatt.public>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 6.0   
Target Milestone: 7.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 494056    

Description Curtis Windatt CLA 2014-10-15 12:27:32 EDT
var f = function foo(){
	foo();
}
foo(); // Should not be available

http://kangax.github.io/nfe/

Unlike function declarations, the identifier/name of a function expression only is available within the scope of that function, not outside of it.
Comment 1 Curtis Windatt CLA 2014-10-15 15:30:58 EDT
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=aba13d06b56a8ab5feb635b9b2a9c4f3a2929535

Fixed in master

The id node is now scoped inside of the function expression.