Skip to content
Permalink
Browse files

We shouldn't auto-vivify on access

Fix for R#2490 was a bit too enthusiastic
  • Loading branch information...
lizmat committed Nov 16, 2018
1 parent c4da4c7 commit 9a2c4b447b262720abdcc21b16b7a481e6ba01a3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/hash_slice.pm6
@@ -51,7 +51,7 @@ multi sub postcircumfix:<{ }>( \SELF, Iterable \key ) is raw {
?? SELF.AT-KEY(key)
!! nqp::p6bindattrinvres(nqp::create(List),List,'$!reified',
nqp::stmts(
Rakudo::Iterator.AssociativeIterableKeys(SELF //= {},key)
Rakudo::Iterator.AssociativeIterableKeys(SELF,key)
.push-all(my \buffer := nqp::create(IterationBuffer)),
buffer
)

0 comments on commit 9a2c4b4

Please sign in to comment.
You can’t perform that action at this time.