-
-
Notifications
You must be signed in to change notification settings - Fork 932
Closed as not planned
Labels
Description
function foo(cb) { cb = function() { function something(a) { cb(1 + a); } register(something); }(); } foo();
// ^^^^^^^^^ To reproduce:
- get The first read reference for
cb(it has a node whose Id is for the aboveCallExpression) - Get the
ScopeIdpointed to by that Reference - Get the node associated with that ScopeId
- Notice that it's the anonymous function wrapping
something, when it should be thesomethingfunction
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackPriority
None yet