Skip to content

Commit

Permalink
Make sure we decont whatever we create a Proxy subclass with
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Sep 24, 2019
1 parent 4a76778 commit ead4fcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/bootstrap.c/BOOTSTRAP.nqp
Expand Up @@ -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($type);
my $cont := nqp::create(nqp::decont($type));
nqp::bindattr($cont, Proxy, '&!FETCH', $FETCH);
nqp::bindattr($cont, Proxy, '&!STORE', $STORE);
$cont
Expand Down

0 comments on commit ead4fcc

Please sign in to comment.