Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make new QAST dumper available from --target=past

  • Loading branch information...
commit bcb136cb2940cf4b413bddb7e7d1b7ba512ec54f 1 parent 2cba446
@moritz moritz authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/HLL/Compiler.pm
View
4 src/HLL/Compiler.pm
@@ -463,6 +463,10 @@ class HLL::Compiler {
}
method dumper($obj, $name, *%options) {
+ if nqp::can($obj, 'dump') {
+ nqp::print($obj.dump());
+ return 0;
+ }
if %options<dumper> {
pir::load_bytecode__vs('PCT/Dumper.pbc');
my $dumper := PCT::Dumper{nqp::lc(%options<dumper>)};
Please sign in to comment.
Something went wrong with that request. Please try again.