Forum: IronRuby Code Review: Fixes for setting/getting backtraces

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Shri B. (Guest)
on 2009-03-03 21:44
(Received via mailing list)
Attachment: exc.diff (0 Bytes)
tfpt review "/shelveset:exc;REDMOND\sborde"


  Comment  :
  Exception backtracesL:
  - minitest was failing while reporting a test failure because
.backtrace was returning null. This was because "raise
existingExceptionObject" was setting backtrace to nil. Fixed this and
added tests for it.
  - Overridden versions of set_trace were also not being called. Fixed
this.
  - The model now is that RubyExceptionData.SetBacktrace manages the
case of firing (the most override version of) Exception#set_backtrace
for the case of an exception being raised. ExceptionOps.SetBacktrace
handles the generic case of the user calling the base implmenetation of
Exception#set_backtrace (ie. it is the normal library API which does not
have to worry about the complications of exception handling).
RubyExceptionData.SetBacktrace now eagerly creates the Ruby backtrace in
most cases, but this should not affect perf since an exception is being
thrown which is much more expensive.
  Added RubySpec project to Ruby.sln as a placeholder to make it easy to
get to the rubyspec files. It contains a link to just a couple of files.
Once these are opened, Ctrl-O will open a File Open dialog box in the
same folder as that file.
  Added all the supported command-line options to ir.exe help
This topic is locked and can not be replied to.