diff options
author | Nobuyoshi Nakada <[email protected]> | 2019-09-02 16:47:12 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2019-09-02 16:47:12 +0900 |
commit | 8b2e1ca10ecf92ad402decd6b1eab586eded0ddb (patch) | |
tree | b3b25f9644a49971f0c4d6010d1695fe0f08750c /error.c | |
parent | 8e38d4c78c1a9b45f604963f85995e9a817ee72c (diff) |
Do not clear backtrace in Exception#exception
[Bug #15558]
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -970,11 +970,11 @@ exc_exception(int argc, VALUE *argv, VALUE self) { VALUE exc; + argc = rb_check_arity(argc, 0, 1); if (argc == 0) return self; if (argc == 1 && self == argv[0]) return self; exc = rb_obj_clone(self); - exc_initialize(argc, argv, exc); - + rb_ivar_set(exc, id_mesg, argv[0]); return exc; } |