DEP0184:在没有 new 的情况下实例化 node:zlib 类


\DEP0184: Instantiating node:zlib classes without new

版本历史
版本变更
v24.0.0

运行时弃用。

v22.9.0, v20.18.0

仅文档弃用。

类型:运行时

\Type: Runtime

不推荐使用 node:zlib 模块导出的没有 new 限定符的类实例化。建议改用 new 限定符。这适用于所有 Zlib 类,例如 DeflateDeflateRawGunzipInflateInflateRawUnzipZlib

\Instantiating classes without the new qualifier exported by the node:zlib module is deprecated. It is recommended to use the new qualifier instead. This applies to all Zlib classes, such as Deflate, DeflateRaw, Gunzip, Inflate, InflateRaw, Unzip, and Zlib.

AltStyle によって変換されたページ (->オリジナル) /