Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Devel-StackTrace CPAN distribution.

Report information
The Basics
Id: 61072
Status: resolved
Priority: 0/
Queue: Devel-StackTrace

People
Owner: Nobody in particular
Requestors: MMIMS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.24
Fixed in: 1.26



Subject: Devel::StackTrace::Frame::as_string walks on global $@
Devel::StackTrace::Frame::as_string fails to localize $@. TODO test attached. -Marc
Subject: dollar_at.t
#!perl use warnings; use strict; use Test::More tests => 1; use Devel::StackTrace; diag $Devel::StackTrace::VERSION; TODO: { local $TODO = 'localize $@'; $@ = my $msg = "Don't tread on me"; Devel::StackTrace->new->frame(0)->as_string; is $@, $msg, '$@ unmolested'; }
Subject: Re: [rt.cpan.org #61072] AutoReply: Devel::StackTrace::Frame::as_string walks on global $@
Date: Sat, 4 Sep 2010 17:45:04 -0700
To: Bugs in Devel-StackTrace via RT <bug-Devel-StackTrace [...] rt.cpan.org>
From: Marc Mims <marc [...] questright.com>
* Bugs in Devel-StackTrace via RT <bug-Devel-StackTrace@rt.cpan.org> [100904 17:41]: Show quoted text
> TODO test attached.
Bah! The web interface though the attachment was a troff file. Here's the test, inline: #!perl use warnings; use strict; use Test::More tests => 1; use Devel::StackTrace; diag $Devel::StackTrace::VERSION; TODO: { local $TODO = 'localize $@'; $@ = my $msg = "Don't tread on me"; Devel::StackTrace->new->frame(0)->as_string; is $@, $msg, '$@ unmolested'; }