You have not misunderstood closures and variables scope, Chrome debugger is trolling you
Chrome’s debugger hides closure variables from upper scopes as a V8 memory optimization at runtime — it’s not a bug in your code, the debugger is trolling you.
Chrome’s debugger hides closure variables from upper scopes as a V8 memory optimization at runtime — it’s not a bug in your code, the debugger is trolling you.