CodeSampleX

Sample

Capture and drain Happy DOM console output through VirtualConsolePrinter, including grouped entries, filtered string reads, and custom-console bypass behavior

sha256:3098b65e11bf49d14ab84c27e05ab483a1e7c1eeae701327dadd384fd3ad8cd0

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Capture and drain Happy DOM console output through VirtualConsolePrinter, including grouped entries, filtered string reads, and custom-console bypass behavior HOW
Packages
happy-dom 20.11.2
Environment
node
Created
2026-08-17T01:52:28Z

Commonly assumed

Happy DOM writes console output directly to the host console, and filtering virtual console output leaves unmatched entries queued for a later read.

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts