On 5 December 2013 03:18, Vyacheslav Egorov <[email protected]> wrote: > Honestly I am not sure I understand the intent of the code. function literal > / declaration create a new closure every time they are executed, you can't > cache it like that. You need to explicitly save it in a variable.
Right, and in particular, in ES6, where block-local functions will be an official feature, their scope will naturally be limited to their block, so at the place where the original code tries to call 'wrapSource', it would plain and simple be an unbound identifier. /Andreas -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
