mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (primary): fix lineno of rescue and ensure.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
93c746f828
commit
1429223686
3 changed files with 12 additions and 8 deletions
|
@ -71,13 +71,8 @@ class TestSetTraceFunc < Test::Unit::TestCase
|
|||
events.shift) # when 3
|
||||
assert_equal(["line", 20, :test_event, TestSetTraceFunc],
|
||||
events.shift) # c = "b == 3"
|
||||
|
||||
# 1.8
|
||||
# assert_equal(["line", 23, :test_event, TestSetTraceFunc],
|
||||
# events.shift) # begin
|
||||
assert_equal(["line", 24, :test_event, TestSetTraceFunc],
|
||||
assert_equal(["line", 23, :test_event, TestSetTraceFunc],
|
||||
events.shift) # begin
|
||||
|
||||
assert_equal(["line", 24, :test_event, TestSetTraceFunc],
|
||||
events.shift) # raise "error"
|
||||
assert_equal(["c-call", 24, :raise, Kernel],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue