Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1446,16 +1446,17 @@ public Object raise(VirtualFrame frame, RubyClass exceptionClass, RubyString mes

@Specialization
public Object raise(VirtualFrame frame, RubyClass exceptionClass, RubyString message, RubyArray backtrace) {
// TODO (9 Apr. 2015): handle "backtrace".
// TODO (eregon 9 Apr. 2015): handle "backtrace".
return raise(frame, exceptionClass, message, UndefinedPlaceholder.INSTANCE);
}

// NOTE (eregon 9 Mar. 2015):
// This provokes an error under standard Ruby:
// TypeError: backtrace must be Array of String
// but is used in Rubinius in coerce_to_failed for instance.
// but is used in Rubinius in #coerce_to_failed for instance.
@Specialization
public Object raise(VirtualFrame frame, RubyClass exceptionClass, RubyString message, RubyException backtrace) {
// TODO (9 Mar. 2015): handle "backtrace" as an MRI "cause".
// TODO (eregon 9 Mar. 2015): handle "backtrace" as an MRI "cause".
return raise(frame, exceptionClass, message, UndefinedPlaceholder.INSTANCE);
}

0 comments on commit fe8ed1c

Please sign in to comment.