Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…m within
  • Loading branch information...
commit 7a71ec768585c963d5a3ed94f95c5de0780ff630 1 parent 9a63ead
lizmat authored
2  src/core/Bag.pm
@@ -52,7 +52,7 @@ my class Bag is Iterable does Associative does Baggy {
52 52
     method values { %!elems.values }
53 53
     method elems returns Int { [+] self.values }
54 54
     method exists($a) returns Bool { %!elems.exists($a) }
55  
-    method delete($a) {
  55
+    method delete($a) is hidden_from_backtrace {
56 56
         X::Immutable.new( method => 'delete', typename => self.^name ).throw;
57 57
     }
58 58
     method Bool { %!elems.Bool }
2  src/core/Set.pm
@@ -174,7 +174,7 @@ my class Set is Iterable does Associative {
174 174
     method values { %!elems.values }
175 175
     method elems returns Int { %!elems.elems }
176 176
     method exists($a) returns Bool { %!elems.exists($a) }
177  
-    method delete($a) {
  177
+    method delete($a) is hidden_from_backtrace {
178 178
         X::Immutable.new( method => 'delete', typename => self.^name ).throw;
179 179
     }
180 180
     method Bool { %!elems.Bool }

0 notes on commit 7a71ec7

Please sign in to comment.
Something went wrong with that request. Please try again.