Chrome Debugger: Unused variables not loaded in a JavaScript Closure [closed]
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . Not a problem, because I found out what causes it, but a huge quirk nevertheless: Apparently when you create a closure, the JavaScript engine does not save all of its scope variables. It saves only the ones that are really used by the inner function. This causes incorrect results in the debugger if