Project

General

Profile

Actions

Bug #9727

closed

Array#reject aborts with callcc

Added by nobu (Nobuyoshi Nakada) over 10 years ago. Updated over 10 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
r45560
[ruby-dev:48101]

Description

2.0.0以降で、以下のコードが異常終了します。

require 'continuation'
cont = nil
a = [*1..10].reject do |i|
  callcc{|c| cont = c} if !cont and i == 10
  false
end
a.unshift(:x)
cont.call if a.size < 1000
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0