Project

General

Profile

Actions

Bug #19049

closed

lib/debug.rb in Ruby 3.0.4 fails due to $SAFE not being set

Bug #19049: lib/debug.rb in Ruby 3.0.4 fails due to $SAFE not being set

Added by shreejad (Shreeja Datta) about 3 years ago. Updated about 3 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:110264]

Description

Since $SAFE is not a special identifier in Ruby 3.0, lib/debug.rb throws an error as it references to $SAFE which is not set.

Code:
https://github.com/ruby/ruby/blob/ruby_3_0/lib/debug.rb#L6

Error:
lib/ruby/3.0.0/debug.rb:6:in <top (required)>': undefined method >' for nil:NilClass (NoMethodError)

Actions

Also available in: PDF Atom