File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/org/truffleruby/core/module Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 77
77
import org .truffleruby .language .arguments .ReadPreArgumentNode ;
78
78
import org .truffleruby .language .arguments .ReadSelfNode ;
79
79
import org .truffleruby .language .arguments .RubyArguments ;
80
+ import org .truffleruby .language .backtrace .BacktraceFormatter ;
80
81
import org .truffleruby .language .constants .GetConstantNode ;
81
82
import org .truffleruby .language .constants .LookupConstantInterface ;
82
83
import org .truffleruby .language .constants .LookupConstantNode ;
@@ -1115,7 +1116,7 @@ private Object getLocation(ConstantLookupResult lookupResult) {
1115
1116
}
1116
1117
1117
1118
final SourceSection sourceSection = lookupResult .getConstant ().getSourceSection ();
1118
- if (sourceSection == null || ! sourceSection .isAvailable ()) {
1119
+ if (! BacktraceFormatter .isAvailable (sourceSection )) {
1119
1120
return createEmptyArray ();
1120
1121
} else {
1121
1122
final RubyString file = makeStringNode .executeMake (
You can’t perform that action at this time.
0 commit comments