| Summary: | [Occurrences] Named function expression identifiers belong only to that function's scope | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Curtis Windatt <curtis.windatt.public> |
| Component: | JS Tools | Assignee: | 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 | ||
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. |
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.