summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-15 23:45:26 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-15 23:45:26 +0000
commit8eb537a88abf2f37b0728e628f8b7ac2d0d75252 (patch)
tree9bb38799448b07618368d6e9b4f07a4d00b2c65f /error.c
parentabbffef10ccd7bb0b2022bcc73afc51c86bc49c4 (diff)
* eval.c (eval): do not re-raise exception to avoid unnecessary
exception copying, instead modify exception and internal information to adjust eval(). * eval.c (backtrace): can return the current frame information only if lev < -1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/error.c b/error.c
index 2baf3b1..b5b14de 100644
--- a/error.c
+++ b/error.c
@@ -479,8 +479,9 @@ name_err_initialize(argc, argv, self)
VALUE *argv;
VALUE self;
{
- VALUE name = (argc > 1) ? argv[--argc] : Qnil;
+ VALUE name;
+ name = (argc > 1) ? argv[--argc] : Qnil;
exc_initialize(argc, argv, self);
rb_iv_set(self, "name", name);
return self;