[#92063] [Ruby trunk Misc#15723] Reconsider numbered parameters — zverok.offline@...
SXNzdWUgIzE1NzIzIGhhcyBiZWVuIHVwZGF0ZWQgYnkgenZlcm9rIChWaWN0b3IgU2hlcGVsZXYp
3 messages
2019/03/31
[ruby-core:91902] [Ruby trunk Bug#15717] Backport #15270 to Ruby 2.5.x
From:
alanwucanada@...
Date:
2019-03-20 17:34:06 UTC
List:
ruby-core #91902
Issue #15717 has been reported by alanwu (Alan Wu).
----------------------------------------
Bug #15717: Backport #15270 to Ruby 2.5.x
https://bugs.ruby-lang.org/issues/15717
* Author: alanwu (Alan Wu)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-darwin18]
* Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
There is a commit that claims to backport #15270, `ruby_2_5@66225` / `aba207b7620d963e212e4187213db7e1eee7a790 `.
However, the patch in #15270 wasn't actually backported. For reference, here is a script that outputs
```
"2.6.2"
3
4
"class 1"
"class 2"
```
On Ruby 2.6.2, but only outputs
```
"2.5.5"
```
on Ruby 2.5.5.
```ruby
p RUBY_VERSION
iseq = RubyVM::InstructionSequence.compile(<<-RUBY)
class A
class B
end
end
RUBY
iseq_bin = iseq.to_binary
TracePoint.new(:end){|tp|
p tp.lineno
}.enable{
RubyVM::InstructionSequence.load_from_binary(iseq_bin).eval
}
TracePoint.new(:class){|tp|
p "class #{tp.lineno}"
}.enable{
RubyVM::InstructionSequence.load_from_binary(iseq_bin).eval
}
```
Can we also backport the tests in the patch in #15270?
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>