Branch: refs/heads/yves/fix_20161
  Home:   https://github.com/Perl/perl5
  Commit: 3cf1b561fd53463deb6773051638ead9457b82a4
      
https://github.com/Perl/perl5/commit/3cf1b561fd53463deb6773051638ead9457b82a4
  Author: Yves Orton <[email protected]>
  Date:   2022-09-03 (Sat, 03 Sep 2022)

  Changed paths:
    M pp_ctl.c
    M t/comp/retainedlines.t

  Log Message:
  -----------
  pp_ctl.c - use try_yyparse() for eval

CATCH_GET is never true in this code, so we never called try_yyparse()
which in turn meant we leaked debug data from failed evals. With this
in place an eval that dies during compile will always be handled by
doeval_comp() properly.

This includes changes to t/comp/readlines.t so it tests code that
croaks during compile, which used to leak and fail test but was not
actually tested.

This fixes GH Issue #20161.


  Commit: 5b200d846ba101fcfef317651735a2e519dc9757
      
https://github.com/Perl/perl5/commit/5b200d846ba101fcfef317651735a2e519dc9757
  Author: Yves Orton <[email protected]>
  Date:   2022-09-03 (Sat, 03 Sep 2022)

  Changed paths:
    M t/comp/retainedlines.t

  Log Message:
  -----------
  t/comp/retainedlines.t - test eval "UNITCHECK{die}" also

We test BEGIN{die}, but not UNITCHECK{die}. Lets do both.


Compare: https://github.com/Perl/perl5/compare/f22354dc2086...5b200d846ba1

Reply via email to