Permalink
Browse files

make new QAST dumper available from --target=past

  • Loading branch information...
1 parent 2cba446 commit bcb136cb2940cf4b413bddb7e7d1b7ba512ec54f @moritz moritz committed Nov 17, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/HLL/Compiler.pm
View
@@ -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>)};

0 comments on commit bcb136c

Please sign in to comment.