We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc78794 commit 31b6d32Copy full SHA for 31b6d32
src/main/java/org/truffleruby/stdlib/ObjSpaceNodes.java
@@ -11,6 +11,7 @@
11
12
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
13
import com.oracle.truffle.api.dsl.Cached;
14
+import com.oracle.truffle.api.dsl.Fallback;
15
import com.oracle.truffle.api.dsl.Specialization;
16
import com.oracle.truffle.api.object.DynamicObject;
17
import org.truffleruby.Layouts;
@@ -86,6 +87,11 @@ public DynamicObject adjacentObjects(DynamicObject object) {
86
87
return createArray(objects.toArray());
88
}
89
90
+ @Fallback
91
+ public DynamicObject adjacentObjectsPrimitive(Object object) {
92
+ return nil();
93
+ }
94
+
95
96
97
@CoreMethod(names = "root_objects", isModuleFunction = true)
0 commit comments