Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
@@ -176,6 +176,7 @@ public static Encoding checkEncoding(RubyContext context, DynamicObject string,
final Encoding encoding = EncodingNodes.CompatibleQueryNode.compatibleEncodingForStrings(string, other);

if (encoding == null) {
CompilerDirectives.transferToInterpreter();
throw new RaiseException(context.getCoreLibrary().encodingCompatibilityErrorIncompatible(
rope(string).getEncoding().toString(),
rope(other).getEncoding().toString(),

0 comments on commit 6151aa0

Please sign in to comment.