Skip to content

Commit

Permalink
Fix compilation of proxy readers
Browse files Browse the repository at this point in the history
Failed because there's no stage "optimize" yet in the RakuAST based compiler.
  • Loading branch information
niner committed Apr 2, 2022
1 parent d8cd10d commit 05d878f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vm/moar/dispatchers.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -1632,7 +1632,8 @@ class ProxyReaderFactory {
$block.push($dispatch);

# Compile and return it.
nqp::getcomp('Raku').compile($block, :from<optimize>)
my $comp := nqp::getcomp('Raku');
$comp.compile($block, :from($comp.exists_stage('optimize') ?? 'optimize' !! 'ast'))
}
}
my $PROXY-READERS := ProxyReaderFactory.new;
Expand Down

0 comments on commit 05d878f

Please sign in to comment.