v8.0.0-rc.8-dev.14: fix(framework-components): call descriptor.factory as a method (#30222)
- Prisma 近 90 天出现 41 次
- Prisma 近 90 天第 41 次发版
- 上一次:5 天前 · v8.0.0-rc.8-dev.13
发生了什么
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…
摘要按规则整理自下方来源原文