summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-10 06:46:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-10 06:46:28 +0000
commitffec546b0e522a647c7c2473c40dbe018156736d (patch)
treec2c1f3fbfb570bb0cda1fb5ac497f9017561d3e9 /eval.c
parent72df0a8e4703c4e14cb2014d59d8ddad09a47859 (diff)
eval.c: clear internal errinfo
* eval.c (ruby_cleanup): clear internal error info when invoking end procs. [ruby-core:91731] [Bug #15650] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 4476390..1b4b9b1 100644
--- a/eval.c
+++ b/eval.c
@@ -188,6 +188,7 @@ ruby_cleanup(volatile int ex)
step_0: step++;
errs[1] = th->ec->errinfo;
+ if (THROW_DATA_P(th->ec->errinfo)) th->ec->errinfo = Qnil;
rb_set_safe_level_force(0);
ruby_init_stack(&errs[STACK_UPPER(errs, 0, 1)]);