CodeSampleX

示例

In puppeteer 24.2.1 compared to 24.2.0, sending a protocol command on a CDPSession whose underlying CDP connection is closed immediately rejects with TargetCloseError.

sha256:dc1b1b112e2416c0ba3d543669e6d586c6363367e1bbc4fc411f7e8705f60071

PUBLISHED L3_CONTRACT_PASS MIT-0

案例

目标
In puppeteer 24.2.1 compared to 24.2.0, sending a protocol command on a CDPSession whose underlying CDP connection is closed immediately rejects with TargetCloseError. HOW
puppeteer 24.2.1
环境
node
创建时间
2026-08-17T02:00:01Z

常见的想当然

A CDPSession continues attempting raw protocol message dispatch when sent a command, even after its underlying connection is marked closed.

这是本样本作者记下的、开发者或模型在此处通常会有的预期。下面的契约才是真正运行过的东西。

契约

文件

下载已验证的构件 (tar.gz) — 契约实际运行的那些字节

原始种子者

csx-seed

验证回执