From: spiketeika@... Date: 2017-12-21T08:12:31+00:00 Subject: [ruby-core:84387] [Ruby trunk Bug#14214] The direction of branch instruction is broken when block argument is used. Issue #14214 has been reported by yui-knk (Kaneko Yuichiro). ---------------------------------------- Bug #14214: The direction of branch instruction is broken when block argument is used. https://bugs.ruby-lang.org/issues/14214 * Author: yui-knk (Kaneko Yuichiro) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- The result of this code is changed ```ruby 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 ``` -- https://bugs.ruby-lang.org/ Unsubscribe: