Subject: | Missing Stack Trace |
Date: | Tue, 12 Jun 2012 11:57:22 -0700 |
To: | bug-throwable [...] rt.cpan.org |
From: | David E. Wheeler <dwheeler [...] cpan.org> |
When creating a Throwable object with StackTrace::Auto, it fails to create a stack trace "you're at the top level". Seems to me that it ought to have at least the line on which the trace was created/thrown. Test case:
package My::X;
use Moose;
with qw(Throwable StackTrace::Auto);
package main;
use Test::More;
isa_ok my $x = My::X->new, 'My::X', 'X object';
ok $x->stack_trace->frames, 'Should have trace frames';
done_testing;