Skip to content
This repository
Browse code

Make a list into list_s in QAST/Compiler.nqp.

  • Loading branch information...
commit fbe94c9edc91b045f0cd4d3363a747d98d3fdc69 1 parent 17e5ba6
Arne Skjærholt arnsholt authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 src/QAST/Operations.nqp
4 src/QAST/Operations.nqp
@@ -1215,8 +1215,8 @@ QAST::Operations.add_core_op('handle', -> $qastcomp, $op {
1215 1215 $num_pops := $num_pops + 1;
1216 1216 }
1217 1217 if @other {
1218   - my @hnames;
1219   - for @other { nqp::push(@hnames, %handler_names{$_}); }
  1218 + my @hnames := nqp::list_s();
  1219 + for @other { nqp::push_s(@hnames, %handler_names{$_}); }
1220 1220 $other_label := PIRT::Label.new(:name($qastcomp.unique('catch_handler_')));
1221 1221 $ops.push_pirop('new', $reg, "'ExceptionHandler'",
1222 1222 "[" ~ nqp::join(", ", @hnames) ~ "]");

0 comments on commit fbe94c9

Please sign in to comment.
Something went wrong with that request. Please try again.