Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -28,10 +28,8 @@ public class RubyObjectType extends ObjectType {
public String toString(DynamicObject object) {
CompilerAsserts.neverPartOfCompilation();

final RubyContext context = getContext();

if (RubyGuards.isRubyString(object)) {
return Helpers.decodeByteList(context.getRuntime(), StringOperations.getByteList(object));
return Helpers.decodeByteList(getContext().getRuntime(), StringOperations.getByteList(object));
} else if (RubyGuards.isRubySymbol(object)) {
return Layouts.SYMBOL.getString(object);
} else if (RubyGuards.isRubyException(object)) {

0 comments on commit 8d284aa

Please sign in to comment.