From 87e215b55db9c387090264c4d9497f31a00c803c Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 29 May 2007 19:17:18 +0000 Subject: [PATCH] * eval.c (rb_eval_cmd): just return if no exceptions. [ruby-dev:30820] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ eval.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b943177e8e..b305580caf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed May 30 04:18:37 2007 Nobuyoshi Nakada + + * eval.c (rb_eval_cmd): just return if no exceptions. + [ruby-dev:30820] + Wed May 30 02:14:25 2007 Nobuyoshi Nakada * signal.c (interrupt_init): needs to pass nil for Interrupt. diff --git a/eval.c b/eval.c index 106f2c95aa..31b9bd1b65 100644 --- a/eval.c +++ b/eval.c @@ -333,7 +333,7 @@ rb_eval_cmd(VALUE cmd, VALUE arg, int level) POP_TAG(); rb_set_safe_level_force(safe); - th_jump_tag_but_local_jump(state, val); + if (state) th_jump_tag_but_local_jump(state, val); return val; }