Permalink
Browse files

Hide Set|Bag.delete from backtrace, no point in showing exception fro…

…m within
  • Loading branch information...
1 parent 9a63ead commit 7a71ec768585c963d5a3ed94f95c5de0780ff630 @lizmat lizmat committed Sep 1, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/core/Bag.pm
  2. +1 −1 src/core/Set.pm
View
@@ -52,7 +52,7 @@ my class Bag is Iterable does Associative does Baggy {
method values { %!elems.values }
method elems returns Int { [+] self.values }
method exists($a) returns Bool { %!elems.exists($a) }
- method delete($a) {
+ method delete($a) is hidden_from_backtrace {
X::Immutable.new( method => 'delete', typename => self.^name ).throw;
}
method Bool { %!elems.Bool }
View
@@ -174,7 +174,7 @@ my class Set is Iterable does Associative {
method values { %!elems.values }
method elems returns Int { %!elems.elems }
method exists($a) returns Bool { %!elems.exists($a) }
- method delete($a) {
+ method delete($a) is hidden_from_backtrace {
X::Immutable.new( method => 'delete', typename => self.^name ).throw;
}
method Bool { %!elems.Bool }

0 comments on commit 7a71ec7

Please sign in to comment.