v8.0.0-rc.8-dev.14: fix(framework-components): call descriptor.factory as a method (#30222)
- Prisma: 41 events in the last 90 days
- Prisma: 41th Release in the last 90 days
- Previous: 5 days earlier · v8.0.0-rc.8-dev.13
What happened
Summary materializeCodec evaluated descriptor.factory to a bare value before calling it, so this was undefined inside the factory. Every codec built as new XCodec(this) — the standard pattern for class-based codecs — received descriptor === undefined . CodecImpl.get id() is this.descriptor.codecId , so codec.id threw on every such codec. Why it went unnoticed id is read almost nowhere: the decode and encode failure…
Summary assembled by rule from the sources below