diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2008-02-09 14:56:23 +0000 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2008-02-09 14:56:23 +0000 |
commit | ca4cfd28534303b82a216cfe83a1c80cbc3b9dc5 (patch) | |
tree | 377d90b11e9623fbceaed8724f950cff309f3267 /toke.c | |
parent | 41d86c6b932c287037db3584f7658c067cae5e84 (diff) | |
download | perl-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |