For functions defined with ES4 let block, does the scope of the
closure includes the let block?
I.e will f in the following examples refer to the function itself or
to the the name from the outer scope?
let (f = function() { ... f() ... }) { ... }
let (function f(n) { ... f() ... }) { ... }
I assume that f should refer to f from the outer scope to allow a usage like:
let (function f() { print("f is called"); f(); }) {
...
}
Regards, Igor
_______________________________________________
Es4-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es4-discuss