Project

General

Profile

Actions

Feature #12338

closed

bypass Exception.new

Feature #12338: bypass Exception.new

Added by nobu (Nobuyoshi Nakada) over 9 years ago. Updated about 4 years ago.

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

Description

Redefinition of class method new is an outdated style, and internal exceptions should not be affected by it.

https://github.com/ruby/ruby/compare/trunk...nobu:feature/exc_new-bypass
https://github.com/ruby/ruby/pull/1331


Related issues 1 (0 open1 closed)

Related to Ruby - Bug #14229: An exception in eval has strange messageClosedmatz (Yukihiro Matsumoto)Actions

Updated by nobu (Nobuyoshi Nakada) over 9 years ago Actions #2 [ruby-core:75556]

Currently, exception in eval shows the followings:

$ ruby -e 'eval("raise")'
-e:1:in `eval': (eval):1:in `<main>' (RuntimeError)
	from -e:1:in `eval'
	from -e:1:in `<main>'

I don't see a reason "`eval'" is prepended.

Updated by nobu (Nobuyoshi Nakada) almost 8 years ago Actions #3

  • Related to Bug #14229: An exception in eval has strange message added

Updated by jeremyevans0 (Jeremy Evans) about 4 years ago Actions #4

  • Status changed from Open to Closed
Actions

Also available in: PDF Atom