Skip to content

Commit

Permalink
Never bind a Mu into Hash's $!storage
Browse files Browse the repository at this point in the history
Just leave it unset, and it'll vivify on demand if needed.
  • Loading branch information
jnthn committed Aug 10, 2018
1 parent 681ab71 commit ec7de84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Metamodel/BOOTSTRAP.nqp
Expand Up @@ -744,7 +744,7 @@ my class Binder {
# that. Otherwise, putting Mu in there is fine; Hash is smart
# enough to know what to do.
my $hash := nqp::create(Hash);
nqp::bindattr($hash, Map, '$!storage', $named_args || Mu);
nqp::bindattr($hash, Map, '$!storage', $named_args) if $named_args;
$bind_fail := bind_one_param($lexpad, $sig, $param, $no_nom_type_check, $error,
0, $hash, 0, 0.0, '');
return $bind_fail if $bind_fail;
Expand Down

0 comments on commit ec7de84

Please sign in to comment.