Skip to content

Commit

Permalink
[Truffle] Annotate who wrote these mysterious notes.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Apr 9, 2015
1 parent f0b1605 commit fe8ed1c
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -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);
}

Expand Down

0 comments on commit fe8ed1c

Please sign in to comment.