projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
188ba42
)
one more Eval::Closure use
Jesse Luehrs [Thu, 21 Apr 2011 14:02:04 +0000 (09:02 -0500)]
t/type_constraints/util_std_type_constraints.t
patch
|
blob
|
blame
|
history
diff --git
a/t/type_constraints/util_std_type_constraints.t
b/t/type_constraints/util_std_type_constraints.t
index
89c35ba
..
12ca75a
100644
(file)
--- a/
t/type_constraints/util_std_type_constraints.t
+++ b/
t/type_constraints/util_std_type_constraints.t
@@
-732,9
+732,9
@@
for my $name ( sort keys %tests ) {
my $inlined;
{
- local $@;
- $inlined = eval 'sub { ( ' . $type->_inline_check('$_[0]') . ' ) }';
- die $@ if $@;
+ $inlined = eval_closure(
+ source => 'sub { ( ' . $type->_inline_check('$_[0]') . ' ) }',
+ );
}
ok(