Created
September 23, 2019 08:24
Make Proxy honour subclassing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git diff | |
diff --git a/src/Perl6/bootstrap.c/BOOTSTRAP.nqp b/src/Perl6/bootstrap.c/BOOTSTRAP.nqp | |
index a26697224..17b8dc3e7 100644 | |
--- a/src/Perl6/bootstrap.c/BOOTSTRAP.nqp | |
+++ b/src/Perl6/bootstrap.c/BOOTSTRAP.nqp | |
@@ -1749,7 +1749,7 @@ BEGIN { | |
nqp::getattr($cont, Proxy, '&!STORE')($var, $val) | |
}))); | |
Proxy.HOW.add_method(Proxy, 'new', nqp::getstaticcode(sub ($type, :$FETCH!, :$STORE!) { | |
- my $cont := nqp::create(Proxy); | |
+ my $cont := nqp::create($type); | |
nqp::bindattr($cont, Proxy, '&!FETCH', $FETCH); | |
nqp::bindattr($cont, Proxy, '&!STORE', $STORE); | |
$cont |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment