Skip to content

Commit aa532c2

Browse files
committed
[truffle] Avoid modifing the QAST when compiling nqp::call
1 parent 535f1ee commit aa532c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vm/jvm/Truffle.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ class QAST::OperationsTruffle {
465465
add_op('call', :!inlinable, sub ($comp, $node, :$want) {
466466
my $ret := ['call'];
467467

468-
my @args := $node.list;
468+
my @args := nqp::clone($node.list);
469469

470470
if $node.name {
471471
nqp::push($ret, ['get-lexical', $node.name]);

0 commit comments

Comments
 (0)