diff options
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -466,11 +466,8 @@ exc_setup_cause(VALUE exc, VALUE cause) } } #endif - if (!NIL_P(cause) && cause != exc && BUILTIN_TYPE(cause) != T_NODE) { + if (!NIL_P(cause) && cause != exc) { rb_ivar_set(exc, id_cause, cause); - if (!rb_ivar_defined(cause, id_cause)) { - rb_ivar_set(cause, id_cause, Qnil); - } } return exc; } |