GH-734: Improve handling of lambdas that escape enclosing frame

This commit is contained in:
Jon Siwek 2020-07-14 22:11:04 -07:00
parent fd8db24daf
commit eb826bd337
5 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1,12 @@
# @TEST-EXEC: zeek -b %INPUT >out
# @TEST-EXEC: btest-diff out
event zeek_init() &priority=+10
{
local outer = 101;
local lambda = function()
{ print outer + 2; };
lambda();
}