Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Created October 4, 2021 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MasterDuke17/4f9cc0cda77607d1216fb1b8d7def040 to your computer and use it in GitHub Desktop.
Save MasterDuke17/4f9cc0cda77607d1216fb1b8d7def040 to your computer and use it in GitHub Desktop.
diff --git src/vm/jvm/Perl6/Ops.nqp src/vm/jvm/Perl6/Ops.nqp
index 059793e2d..ec6447713 100644
--- src/vm/jvm/Perl6/Ops.nqp
+++ src/vm/jvm/Perl6/Ops.nqp
@@ -69,7 +69,7 @@ proto sub trial_bind(*@args) {
my $trial_bind := -> $qastcomp, $op {
$qastcomp.as_jast(QAST::Op.new(
:op('call'),
- QAST::WVal.new( :value(nqp::getcodeobj(&trial_bind)) ),
+ QAST::WVal.new( :value(&trial_bind) ),
|@($op)
));
};
@@ -78,7 +78,7 @@ proto sub get_binder() { $Binder }
$ops.add_hll_op('nqp', 'p6setbinder', -> $qastcomp, $op {
$qastcomp.as_jast(QAST::Op.new(
:op('call'),
- QAST::WVal.new( :value(nqp::getcodeobj(&set_binder)) ),
+ QAST::WVal.new( :value(&set_binder) ),
|@($op)
));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment