'010-isa-or.t' => "Mouse has a [BUG]",
'052-undefined-type-in-union.t' => "Mouse accepts undefined type as a member of union types",
+ '054-anon-leak.t' => 'Moose has memory leaks',
'600-tiny-tiny.t' => "Moose doesn't support ::Tiny",
'601-tiny-mouse.t' => "Moose doesn't support ::Tiny",
return if !$serial_id;
- @{$self->{superclasses}} = (); # clear @ISA
- %{$self->namespace} = (); # clear the stash
+ # @ISA is a magical variable, so we clear it manually.
+ @{$self->{superclasses}} = () if exists $self->{superclasses};
+
+ # Then, clear the symbol table hash
+ %{$self->namespace} = ();
my $name = $self->name;
delete $METAS{$name};
- $name =~ s/::\d+$//;
+ $name =~ s/ $serial_id \z//xms;
no strict 'refs';
-
delete ${$name}{ $serial_id . '::' };
return;