Skip to content

Commit

Permalink
[Truffle] Add un.rb to stdlib, stub Thread::Backtrace::Location#label
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Fish committed Nov 7, 2016
1 parent 8960ec0 commit 63af728
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/ruby/truffle/mri/un.rb
@@ -0,0 +1 @@
require_relative '../../stdlib/un'
Expand Up @@ -58,6 +58,17 @@ public DynamicObject absolutePath(DynamicObject threadBacktraceLocation) {

}

@CoreMethod(names = "label")
public abstract static class LabelNode extends UnaryCoreMethodNode {

@Specialization
public Object label(DynamicObject threadBacktraceLocation) {
// TODO BJF 7 Nov. 2016 This needs to be implemented, stubbed for now
return nil();
}

}

@CoreMethod(names = "lineno")
public abstract static class LinenoNode extends UnaryCoreMethodNode {

Expand Down

0 comments on commit 63af728

Please sign in to comment.