fix Issue 11220 - XXX__lambda2 cannot access frame of function XXX
Merge pull request #2652 from 9rnsr/fix11220

[REG2.060] Issue 11220 - XXX__lambda2 cannot access frame of function XXX