From: mame@... Date: 2017-12-25T08:24:20+00:00 Subject: [ruby-core:84434] [Ruby trunk Bug#14229] An exception in eval has strange message Issue #14229 has been reported by mame (Yusuke Endoh). ---------------------------------------- Bug #14229: An exception in eval has strange message https://bugs.ruby-lang.org/issues/14229 * Author: mame (Yusuke Endoh) * Status: Assigned * Priority: Normal * Assignee: matz (Yukihiro Matsumoto) * Target version: next minor * ruby -v: * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- Is this intentional? If so, I'm curious what purpose it is for. begin eval("raise") rescue p e.message #=> "(eval):1:in `
'" end This leads to progressive backtrace message: $ ./miniruby -e 'eval("raise")' Traceback (most recent call last): 2: from -e:1:in `
' 1: from -e:1:in `eval' -e:1:in `eval': (eval):1:in `
' (RuntimeError) ^^^^^^^^^^^^^^^^^^^^ HIGHLIGHTED -- https://bugs.ruby-lang.org/ Unsubscribe: