Project

General

Profile

Actions

Bug #15285

closed

lambda return behavior regression from #14639

Added by nmueller (Nate Mueller) about 6 years ago. Updated almost 6 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux]
[ruby-core:89734]

Description

The change in ea15ceddbef2cc4c459c1ad5796e43ae9fa2cbf1 to use rb_yield_force_blockarg changes the behavior of returns called inside a passed lambda function. In 2.5.1 and below, including before the enum.c change, the attached script would print true. In 2.5.3 it prints false.


Files

test.rb (118 Bytes) test.rb nmueller (Nate Mueller), 11/06/2018 09:19 PM
test.rb (828 Bytes) test.rb jhawthorn (John Hawthorn), 11/19/2018 10:41 PM

Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #14639: Array#map and lambda arity regressionClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0