Skip to content

Commit 37799fb

Browse files
committed
Fix assert
1 parent bc8e5ad commit 37799fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/BuiltinFunctions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ String sourceAsString(Object source, String filename, InteropLibrary interopLib,
843843
if (!decoder.decodingStep(true)) {
844844
try {
845845
handleDecodingErrorNode.execute(decoder, "strict", source);
846-
throw new IllegalStateException("should be unreachable");
846+
throw CompilerDirectives.shouldNotReachHere();
847847
} catch (PException e) {
848848
throw raiseInvalidSyntax(filename, "(unicode error) %s", pyLib.asPString(e.getEscapedException()));
849849
}

0 commit comments

Comments
 (0)