-
-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently, deleting a key from a nqp::iterator of an nqp::hash and then continuing iterating over the hash, may cause segfaults. Prevent that situation by letting the SetHash.kv/pairs/values methods run on an iterator on a pre-made list of keys, rather than directly on the nqp::hash iterator. Deleting can happen if the value of a key from a SetHash is set to False: my %s is SetHash = <a b c d e>; dd %s; # SetHash.new("d","b","e","c","a") $_ = False for %s.values; dd %s; # SetHash.new()
- Loading branch information
Showing
1 changed file
with
31 additions
and
15 deletions.
There are no files selected for viewing
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