Skip to content

Commit

Permalink
Don't eat lone failure initializing a hash, Util++
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jun 11, 2015
1 parent 0f53d57 commit 15c6fbf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/EnumMap.pm
Expand Up @@ -107,7 +107,9 @@ my class EnumMap does Associative { # declared in BOOTSTRAP
}
elsif $items { self.STORE_AT_KEY($x, $items.shift) }
else {
X::Hash::Store::OddNumber.new.throw
nqp::istype($x,Failure)
?? $x.throw
!! X::Hash::Store::OddNumber.new.throw;
}
}
self
Expand Down

0 comments on commit 15c6fbf

Please sign in to comment.