summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2008-02-09 14:56:23 +0000
committerDave Mitchell <davem@fdisolutions.com>2008-02-09 14:56:23 +0000
commitca4cfd28534303b82a216cfe83a1c80cbc3b9dc5 (patch)
tree377d90b11e9623fbceaed8724f950cff309f3267 /toke.c
parent41d86c6b932c287037db3584f7658c067cae5e84 (diff)
downloadperl-ca4cfd28534303b82a216cfe83a1c80cbc3b9dc5.tar.gz
[perl #49472] Attributes + Unkown Error
An errored attribute sub still processes the attributes, which require's attribute.pm, so make sure the error state is passed to the new require p4raw-id: //depot/perl@33265
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/toke.c b/toke.c
index 2ae8b7577b..ecee9025ab 100644
--- a/toke.c
+++ b/toke.c
@@ -692,6 +692,7 @@ Perl_lex_start(pTHX_ SV *line, PerlIO *rsfp, bool new_filter)
#else
parser->nexttoke = 0;
#endif
+ parser->error_count = oparser ? oparser->error_count : 0;
parser->copline = NOLINE;
parser->lex_state = LEX_NORMAL;
parser->expect = XSTATE;