RUNTIME ERROR: xxx ------------------------------------------------- testdata/recursive_thunk:1:35-46 function local bar(th, x) = if x == 0 then error "xxx" else th; ------------------------------------------------- testdata/recursive_thunk:2:16-38 function local foo(x) = bar(foo(x - 1), x - 1); ------------------------------------------------- testdata/recursive_thunk:2:20-30 thunk from > local foo(x) = bar(foo(x - 1), x - 1); ------------------------------------------------- testdata/recursive_thunk:1:52-54 function local bar(th, x) = if x == 0 then error "xxx" else th; ------------------------------------------------- ... (skipped 1 frames) ------------------------------------------------- testdata/recursive_thunk:2:20-30 thunk from > local foo(x) = bar(foo(x - 1), x - 1); ------------------------------------------------- testdata/recursive_thunk:1:52-54 function local bar(th, x) = if x == 0 then error "xxx" else th; ------------------------------------------------- testdata/recursive_thunk:2:16-38 function local foo(x) = bar(foo(x - 1), x - 1); ------------------------------------------------- testdata/recursive_thunk:3:1-7 $ foo(3) ------------------------------------------------- During evaluation