summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-03-13 10:07:50 +0100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-03-13 10:09:03 +0100
commit3a7a94e274d5af79b9dacbe2adc9c4cabcf24a08 (patch)
treec26569babb0a08cae19054b16003cd5ec3776f90 /op.c
parent34a81e2b89e80eb8560606e2b29037d4da625156 (diff)
downloadperl-3a7a94e274d5af79b9dacbe2adc9c4cabcf24a08.tar.gz
Make eval{} (entertry) trappable by Safe
Diffstat (limited to 'op.c')
-rw-r--r--op.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/op.c b/op.c
index 5103efb215..2596d8bcd4 100644
--- a/op.c
+++ b/op.c
@@ -6540,6 +6540,8 @@ Perl_ck_eval(pTHX_ OP *o)
/* establish postfix order */
enter->op_next = (OP*)enter;
+ CHECKOP(OP_ENTERTRY, enter);
+
o = prepend_elem(OP_LINESEQ, (OP*)enter, (OP*)kid);
o->op_type = OP_LEAVETRY;
o->op_ppaddr = PL_ppaddr[OP_LEAVETRY];