Skip to content

Using <internal: for core library methods defined in Ruby #6430

@eregon

Description

@eregon

Core library methods' source_location and in backtraces defined with Ruby code look like this:

  • <internal:kernel>:89 on CRuby
  • <internal:core> core/kernel.rb:533 on TruffleRuby
  • uri:classloader:/jruby/kernel/enumerator.rb:243 on JRuby

I would suggest to use a <internal: prefix since this is becoming the de facto standard.
That will also provide a consistent way to filter out core library methods defined in Ruby when desirable.

Also note that both CRuby 3 and TruffleRuby ignore entries starting with <internal: for Kernel#warn(msg, uplevel: n) (details in ruby/rubygems#3987 (comment)).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions