-
-
Notifications
You must be signed in to change notification settings - Fork 702
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