Skip to content

Commit

Permalink
Restore possible erroneous use of dispatcher-replace-arg
Browse files Browse the repository at this point in the history
As the original code didn't use it either.
  • Loading branch information
lizmat committed Feb 2, 2024
1 parent 78497ad commit d176728
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/vm/moar/dispatchers.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -1778,8 +1778,9 @@ nqp::register('raku-meth-deferral',
nqp::delegate('raku-meth-deferral',
nqp::syscall('dispatcher-insert-arg',
nqp::syscall('dispatcher-insert-arg-literal-int',
nqp::syscall('dispatcher-replace-arg',
$capture, 0, nqp::track('arg', $args, 0)
nqp::syscall('dispatcher-insert-arg',
nqp::syscall('dispatcher-drop-arg', $capture, 0),
0, nqp::track('arg', $args, 0)
),
0, nqp::const::DISP_CALLSAME
),
Expand Down

0 comments on commit d176728

Please sign in to comment.