JS PIR: carrier serializer implementation

This commit is contained in:
Anton Bannykh
2021-04-02 17:49:33 +03:00
committed by TeamCityServer
parent c97066527c
commit 1e822aa28a
5 changed files with 506 additions and 1 deletions
@@ -174,7 +174,7 @@ fun IrModuleDeserializer.findModuleDeserializerForTopLevelId(idSignature: IdSign
return moduleDependencies.firstOrNull { idSignature in it }
}
internal val ByteArray.codedInputStream: CodedInputStream
val ByteArray.codedInputStream: CodedInputStream
get() {
val codedInputStream = CodedInputStream.newInstance(this)
codedInputStream.setRecursionLimit(65535) // The default 64 is blatantly not enough for IR.