summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-27 14:59:55 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-27 14:59:55 +0000
commit543a8b5e3d6869ab2312019afdd7ec277125b626 (patch)
tree646ee01f6169ddfdc075d762c8fe8273d27f6126
parent7015fcf9f88ad4f0131439d6c1c30cef320f9c8c (diff)
revert r57222 because of SEGV
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@57226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--eval.c3
-rw-r--r--test/ruby/test_exception.rb20
-rw-r--r--version.h2
4 files changed, 1 insertions, 29 deletions
diff --git a/ChangeLog b/ChangeLog
index 2a6d3dbe23..41eb04b2b5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,11 +3,6 @@ Tue Dec 27 20:43:54 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
* time.c (usec2subsecx): fix return type, which is a numeric object but
not a long int. [Bug #13066]
-Tue Dec 27 20:39:28 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (exc_setup_cause): always set cause of cause to get rid of
- circular references. [Bug #13043]
-
Tue Dec 27 20:13:12 2016 Kazuki Yamaguchi <k@rhe.jp>
* re.c (match_{names,hash,equal}): consider the case of RMatch::regexp
diff --git a/eval.c b/eval.c
index a8935ff7ce..fbd28565ed 100644
--- a/eval.c
+++ b/eval.c
@@ -468,9 +468,6 @@ exc_setup_cause(VALUE exc, VALUE cause)
#endif
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;
}
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb
index 0e0179fd5f..3268096463 100644
--- a/test/ruby/test_exception.rb
+++ b/test/ruby/test_exception.rb
@@ -717,26 +717,6 @@ end.join
assert_equal({}, e.arg, bug)
end
- def test_circular_cause
- bug13043 = '[ruby-core:78688] [Bug #13043]'
- begin
- begin
- raise "error 1"
- ensure
- orig_error = $!
- begin
- raise "error 2"
- rescue => err
- raise orig_error
- end
- end
- rescue => x
- end
- assert_equal(orig_error, x)
- assert_equal(orig_error, err.cause)
- assert_nil(orig_error.cause, bug13043)
- end
-
def test_anonymous_message
assert_in_out_err([], "raise Class.new(RuntimeError), 'foo'", [], /foo\n/)
end
diff --git a/version.h b/version.h
index 0aadc90cff..85ff56b277 100644
--- a/version.h
+++ b/version.h
@@ -1,6 +1,6 @@
#define RUBY_VERSION "2.2.7"
#define RUBY_RELEASE_DATE "2016-12-27"
-#define RUBY_PATCHLEVEL 415
+#define RUBY_PATCHLEVEL 416
#define RUBY_RELEASE_YEAR 2016
#define RUBY_RELEASE_MONTH 12