[ruby-core:75556] [Ruby trunk Feature#12338] bypass Exception.new

From: nobu@...
Date: 2016-05-17 09:13:40 UTC
List: ruby-core #75556
Issue #12338 has been updated by Nobuyoshi Nakada.


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.

----------------------------------------
Feature #12338: bypass Exception.new
https://bugs.ruby-lang.org/issues/12338#change-58690

* Author: Nobuyoshi Nakada
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
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




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next