Backed out 11732, it breaks lib/strict.t
Artur Bergman [Thu, 23 Aug 2001 13:42:07 +0000 (13:42 +0000)]
p4raw-id: //depot/perl@11735

op.c

diff --git a/op.c b/op.c
index 6dcd746..677fe7a 100644 (file)
--- a/op.c
+++ b/op.c
@@ -2147,8 +2147,7 @@ Perl_block_end(pTHX_ I32 floor, OP *seq)
 {
     int needblockscope = PL_hints & HINT_BLOCK_SCOPE;
     OP* retval = scalarseq(seq);
-    if (!PL_error_count)
-        LEAVE_SCOPE(floor);
+    LEAVE_SCOPE(floor);
     PL_pad_reset_pending = FALSE;
     PL_compiling.op_private = PL_hints;
     if (needblockscope)