Skip to content

Commit

Permalink
[Truffle] Add Thread::Backtrace::Location#path.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Jul 9, 2015
1 parent 4ea5001 commit c4635e3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ protected static Activation getActivation(RubyBasicObject threadBacktraceLocatio
return (Activation) ACTIVATION_PROPERTY.get(threadBacktraceLocation.getDynamicObject(), true);
}

@CoreMethod(names = "absolute_path")
@CoreMethod(names = { "absolute_path", "path" })
// TODO (eregon, 8 July 2015): these two methods are slightly different (path can be relative if it is the main script)
public abstract static class AbsolutePathNode extends UnaryCoreMethodNode {

public AbsolutePathNode(RubyContext context, SourceSection sourceSection) {
Expand Down

0 comments on commit c4635e3

Please sign in to comment.