Skip to content

throw stringifies the name #506

@zenspider

Description

@zenspider
% ruby --1.8 -e 'begin throw :e; rescue Exception => e; p [e.class, e.message, (e.name rescue nil)]; end'
[NameError, "uncaught throw `e'", "e"]

vs MRI 1.8.7:

ruby -e 'begin throw :e; rescue Exception => e; p [e.class, e.message, (e.name rescue nil)]; end'
[NameError, "uncaught throw `e'", :e]

I'm getting this on a failing minitest test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions