Skip to content

Commit

Permalink
Fix "ctxlexpad needs an MVMContext" regression in SETTING::
Browse files Browse the repository at this point in the history
Apparently the context can be null
  • Loading branch information
niner committed Jan 31, 2023
1 parent 7a6c309 commit b21cd61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.c/PseudoStash.pm6
Expand Up @@ -199,7 +199,7 @@ my class PseudoStash is Map {
until nqp::isnull($ctx) || nqp::existskey(nqp::ctxlexpad($ctx), '!UNIT_MARKER') {
$ctx := nqp::ctxouterskipthunks($ctx);
}
my $is-rakuast := nqp::existskey(nqp::ctxlexpad($ctx), '!RAKUAST_MARKER');
my $is-rakuast := nqp::isconcrete($ctx) && nqp::existskey(nqp::ctxlexpad($ctx), '!RAKUAST_MARKER');
nqp::if(
nqp::isnull($ctx)
|| nqp::isnull($ctx := nqp::ctxouter($ctx))
Expand Down

0 comments on commit b21cd61

Please sign in to comment.