Closures and ES2015
问题 I apologize in advance for yet another closure question, but I'd like to clarify my understanding of the way closures are implemented in JavaScript. Consider the following code: 01 'use strict'; 02 function foo() {} 03 foo(); I have established in a question earlier in the year that a closure is conceptually (if not actually due to engine optimizations) created here. And until foo is invoked on line 3 a corresponding execution context is not created. So as far as I can tell from the spec,