Actions
Bug #11750
closedSEGV with Enumerator, yield and proc.
Bug #11750:
SEGV with Enumerator, yield and proc.
Description
Files
Actions
Added by akr (Akira Tanaka) almost 11 years ago. Updated almost 11 years ago.
Description
Files
| bug-11750.log (11.2 KB) bug-11750.log | nobu (Nobuyoshi Nakada), 11/30/2015 05:35 AM |
Applied in changeset r53144.
vm.c: fix mark miss for proc given as passed block.
[Bug #11750]
vm.c (vm_make_proc_from_block): should return a Proc object
if block is given. Previous implementation returns
a Proc object only when corresponding Proc object is not
available.
vm.c (vm_make_env_each): ditto.
test/ruby/test_proc.rb: add a test for this bug.