mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
Don't set throw data as cause [Bug #15282]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c076d6009c
commit
fdcc9c9e43
2 changed files with 7 additions and 1 deletions
|
@ -699,6 +699,12 @@ end.join
|
|||
assert_same(a, e.cause.cause)
|
||||
end
|
||||
|
||||
def test_cause_at_end
|
||||
assert_in_out_err([], <<-'end;', [], [/-: unexpected return\n/, /.*undefined local variable or method `n'.*\n/])
|
||||
END{n}; END{return}
|
||||
end;
|
||||
end
|
||||
|
||||
def test_raise_with_cause
|
||||
msg = "[Feature #8257]"
|
||||
cause = ArgumentError.new("foobar")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue