Skip to content

Commit

Permalink
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 0 additions & 2 deletions spec/truffle/tags/core/exception/errno_tags.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
fails:Errno::EAGAIN is the same class as Errno::EWOULDBLOCK if they represent the same errno value
fails:Errno::EINVAL.new can be called with no arguments
fails:Errno::EINVAL.new accepts an optional custom message
fails:Errno::EINVAL.new accepts an optional custom message and location
9 changes: 9 additions & 0 deletions truffle/src/main/java/org/jruby/truffle/core/CoreLibrary.java
Original file line number Diff line number Diff line change
@@ -962,6 +962,15 @@ private void initializeConstants() {
// Java interop
final DynamicObject javaModule = defineModule(truffleModule, "Java");
Layouts.MODULE.getFields(javaModule).setConstant(context, node, "System", systemObject);

// Errno constants
for (Map.Entry<Errno, DynamicObject> entry : errnoClasses.entrySet()) {
final Errno errno = entry.getKey();
final DynamicObject errnoClass = entry.getValue();
Layouts.CLASS.getFields(errnoClass).setConstant(context, node, "Errno", errno.intValue());
}


}

private void initializeSignalConstants() {

0 comments on commit 431ce8a

Please sign in to comment.