← 返回事件
持续讨论科技发版8.0.0-rc.8

v8.0.0-rc.8-dev.14: fix(framework-components): call descriptor.factory as a method (#30222)

发生了什么

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…

摘要按规则整理自下方来源原文

为什么在扩散

来源