Project

General

Profile

Bug #13090

Updated by nobu (Nobuyoshi Nakada) over 2 years ago

Hello,

I'm pretty sure I've found a bug after running specs for dry-initializer gem on MRI 2.4.
I managed to find the minimal code to reproduce the issue:

MRI 2.3.3

```

`
$ ruby -e "instance_eval(&lambda { |_| return })"
$
``` `

MRI 2.4.0-p0

```

`
$ ruby -e "instance_eval(&lambda { |_| return })"
-e:1:in `block in <main>': unexpected return (LocalJumpError)
from -e:1:in `instance_eval'
from -e:1:in `<main>'
``` `

I _think_ lambda has been converted to an ordinary proc, but I didn't check it.

Best regards,
Nikita

Back