mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
parse.y: remove trace
* parse.y (reg_named_capture_assign_iter): do not insert trace instructions before local variable assinments. putobject is expected at first. [ruby-core:79940] [Bug #13287] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d69d98f61a
commit
249fd9e0b7
2 changed files with 10 additions and 1 deletions
|
@ -205,6 +205,15 @@ class TestRegexp < Test::Unit::TestCase
|
|||
assert_not_include(local_variables, :nil, "[ruby-dev:32675]")
|
||||
end
|
||||
|
||||
def test_assign_named_capture_trace
|
||||
bug = '[ruby-core:79940] [Bug #13287]'
|
||||
assert_normal_exit("#{<<-"begin;"}\n#{<<-"end;"}", bug)
|
||||
begin;
|
||||
/ (?<foo>.*)/ =~ "bar" &&
|
||||
true
|
||||
end;
|
||||
end
|
||||
|
||||
def test_match_regexp
|
||||
r = /./
|
||||
m = r.match("a")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue