Skip to content

Commit

Permalink
Add support for SL_REPORT environment variable
Browse files Browse the repository at this point in the history
To adapt the default of 5 items being reported by the MoarVM::Spesh.report
method.  Also make sure we see any execution errors in report generation.
  • Loading branch information
lizmat committed Feb 10, 2021
1 parent dfd604d commit 1fb8caf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/SL.rakumod
Expand Up @@ -12,8 +12,8 @@
use MoarVM::SL;

if SL() -> $SL {
LEAVE $SL.exit;
say "\n$SL.report()";
say "\n$SL.report(%*ENV<SL_REPORT> // 5)";
$SL.exit;
}

# vim: expandtab shiftwidth=4

0 comments on commit 1fb8caf

Please sign in to comment.