summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-03-02 22:03:47 -0600
committerJesse Luehrs <doy@tozt.net>2011-03-02 22:03:47 -0600
commit04918f808a684de8897789f8eff80880f1e93ec9 (patch)
tree61f82e5572ff05388d847b3487171490a80ad0ba /lib
parent1e39bf601a7d49cd9664e0b88d6838886f0779f9 (diff)
downloadeval-closure-04918f808a684de8897789f8eff80880f1e93ec9.tar.gz
eval-closure-04918f808a684de8897789f8eff80880f1e93ec9.zip
don't add #line description when debugger is active
this supposedly lets things like NYTProf report on time spent in evals
Diffstat (limited to 'lib')
-rw-r--r--lib/Eval/Closure.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Eval/Closure.pm b/lib/Eval/Closure.pm
index 01e1411..74b64a4 100644
--- a/lib/Eval/Closure.pm
+++ b/lib/Eval/Closure.pm
@@ -106,7 +106,7 @@ sub eval_closure {
$args{source} = _line_directive(@args{qw(line description)})
. $args{source}
- if defined $args{description};
+ if defined $args{description} && !($^P & 0x10);
my ($code, $e) = _clean_eval_closure(@args{qw(source environment)});