Skip to content

Commit

Permalink
Showing 8 changed files with 4 additions and 16 deletions.
2 changes: 0 additions & 2 deletions spec/truffle/tags/core/encoding/converter/last_error_tags.txt

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
fails:Encoding::InvalidByteSequenceError#error_bytes returns a String
fails:Encoding::InvalidByteSequenceError#error_bytes returns the bytes that caused the exception
fails:Encoding::InvalidByteSequenceError#error_bytes uses ASCII-8BIT as the encoding

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -395,7 +395,10 @@ public Object encodingConverterLastError(VirtualFrame frame, DynamicObject encod
lookupTableWriteNode.call(frame, ret, "[]=", null, getSymbol("error_bytes"), createString(new ByteList(lastError.getErrorBytes())));

if (lastError.getReadAgainLength() != 0) {
lookupTableWriteNode.call(frame, ret, "[]=", null, getSymbol("read_again_bytes"), lastError.getReadAgainLength());
lookupTableWriteNode.call(frame, ret, "[]=", null, getSymbol("read_again_bytes"),
createString(new ByteList(lastError.getErrorBytes(),
lastError.getErrorBytesLength() + lastError.getErrorBytesP(),
lastError.getReadAgainLength())));
}

return ret;

0 comments on commit 77b2b2c

Please sign in to comment.