Actions
Bug #14214
closedThe direction of branch instruction is broken when block argument is used.
Description
The result of this code is changed
def a(&block)
block = 1
p block
p 2 if block
end
a()
ruby 2.5.0rc1 (2017-12-14 trunk 61243) [x86_64-darwin17]
1
2
ruby 2.5.0dev (2017-12-21 trunk 61384) [x86_64-darwin17]
1
Updated by ko1 (Koichi Sasada) over 6 years ago
- Status changed from Open to Closed
Applied in changeset trunk|r61387.
revert r61371 for [Bug #14214]
Reverted patch doesn't check overwritten value.
Actions
Like0
Like0