Revision history for Perl extension Class-MOP.
+0.96
+ * tests
+ - Fixed t/082_get_code_info.t so it passes with bleadperl.
+
0.95 Wed, Nov 19, 2009
* Class::MOP
- Make is_class_loaded without any arguments fail loudly
sub MODIFY_CODE_ATTRIBUTES {
my ($class, $code) = @_;
my @info = Class::MOP::get_code_info($code);
- ::is_deeply(\@info, [], "no name for a coderef that's still compiling");
+
+ if ( $] >= 5.011 ) {
+ ::is_deeply(\@info, ['Foo', 'foo'], "got a name for a code ref in an attr handler");
+ }
+ else {
+ ::is_deeply(\@info, [], "no name for a coderef that's still compiling");
+ }
return ();
}