Skip to content

Commit

Permalink
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions truffle/src/main/ruby/core/shims.rb
Original file line number Diff line number Diff line change
@@ -220,6 +220,12 @@ def printf(fmt, *args)

class Exception

def locations
# These should be Rubinius::Location
# and use the internal backtrace, never the custom one.
backtrace.each { |s| def s.position; self; end }
end

def to_s
message.to_s
end

0 comments on commit 9d0feae

Please sign in to comment.